You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Purpose of doing it from the command line is to automate the creation of the object defined by parameters/database so a backend can parametrically make parts.
The gui will only be used for testing.
- OS: Ubuntu on WSL
- How docker service was installed: docker compose build
# Use the LinuxServer.io FreeCAD Docker image
FROM lscr.io/linuxserver/freecad:latest# Set the working directory
WORKDIR /app/
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
Is there an existing issue for this?
Current Behavior
Python scripts do not work in the docker container cli.
Traceback (most recent call last):
File "", line 8, in
FileNotFoundError: [Errno 2] No such file or directory: '/lsiopy/bin/activate_this.py'
Expected Behavior
freecadcmd file.py
python function should run without the gui.
Steps To Reproduce
https://github.com/ThaL3g3nd27/issue-FreeCad-freecadcmd.git
LinuxServer/FreeCad – freecadcmd not working in cli
steps previous debugged ending with issue
All Code is available
Build the Docker Image
docker-compose build
Run the image using docker-compose
docker-compose up -d
Open Browser to localhost:3000
App works great
Open the boxtest.py within the FreeCad Gui
File>Open>/app/py_scripts>boxtest.py (Defined in docker compose)
And auto exported/downloaded as a box.step file in /py_scripts
Python works Great!
(If Needed) shutdown container -
docker compose down
ISSUE THE CLI doesn't WORK
docker exec -it freecad bash
This is due to Python environment variables…
Correct Example Usage:
https://youtu.be/RQW723n3DkU?si=dIt7jef6VmLHqkaF&t=596
Purpose of the issue:
The Purpose of doing it from the command line is to automate the creation of the object defined by parameters/database so a backend can parametrically make parts.
The gui will only be used for testing.
Link to linuxServer/FreeCad:
https://github.com/linuxserver/docker-freecad.git
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: