amrit3701 / docker-freecad-cli Goto Github PK
View Code? Open in Web Editor NEWFreeCAD compile without GUI
Home Page: https://hub.docker.com/r/amrit3701/freecad-cli/
License: MIT License
FreeCAD compile without GUI
Home Page: https://hub.docker.com/r/amrit3701/freecad-cli/
License: MIT License
Hi,
I'm trying to use your container to generate CAD models.
Since I don't have root permissions on the host system I'm trying to generate the CAD files with ownership set to my user id.
I run the container with the option -u UID:GID
. id
reports the right IDs for the user.
But when starting python, I get the following output
I have no name!@75d087d8d5b6:/home$ python3.8
Python 3.8.5 (default, Jul 20 2020, 19:48:14)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Initialization of FreeCAD failed:
While initializing FreeCAD the following exception occurred: 'Getting HOME path from system failed!'
Please contact the application's support team for more information.
Traceback (most recent call last):
File "/.startup.py", line 1, in <module>
import FreeCAD
ImportError: Failed to load FreeCAD module!
>>>
I looked around the forum, but didn't find any solutions.
Do you know of a way to fix this?
Hi @amrit3701 ,
Thanks for your work !
I'm looking for adding a new workbench to the raw Freecad build (sheet metal).
How would you do that ?
This ticket can be used to track functionality that isn't yet available for FreeCAD CLI:
C:\>docker run -it amrit3701/freecad-cli python3
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import FreeCAD
>>> import Mesh
>>> import OpenSCADUtils
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Mod/OpenSCAD/OpenSCADUtils.py", line 31, in <module>
from exportCSG import mesh2polyhedron
File "/usr/local/Mod/OpenSCAD/exportCSG.py", line 35, in <module>
try: import FreeCADGui
ModuleNotFoundError: No module named 'FreeCADGui'
Obviously it has a dependency on the front end, and we're trying to run headless, so I doubt this is going to be an easy problem to solve.
Any general advice on how to get the union of two meshes in an automated fashion, please? I've tried pymesh. I've tried converting to a Part.Shape
with makeShapeFromMesh
and calling fuse
. Neither approach yeilds a mesh which is valid according to or repairs correctly in FreeCAD. The OpenSCAD workbench in FreeCAD does it nicely, but is now putting up a fight when I try to automate it
We're discussing the importance of having documentation for how to maintain different ways to run/build FreeCAD in FreeCAD/FreeCAD-Bundle#158 (comment). @amrit3701 would you consider documenting what is involved in maintaining docker-freecad-cli ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.