Skip to content

CLI to the LinuxServer/FreeCad -FileNotFoundError: [Errno 2] No such file or directory: '/lsiopy/bin/activate_this.py

Notifications You must be signed in to change notification settings

ThaL3g3nd27/issue-FreeCad-freecadcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

LinuxServer/FreeCad – freecadcmd not working in cli

steps previous debugged ending with issue

All Code is available

  1. Add Dockerfile:

image

  1. Add the docker-compose.yaml

image

  1. Build the Docker Image

    docker-compose build

  2. Run the image using docker-compose

    docker-compose up -d

  3. Open Browser to localhost:3000

image

  App works great

  1. Open the boxtest.py within the FreeCad Gui

    File>Open>/app/py_scripts>boxtest.py (Defined in docker compose)

image

  1. Run the Code in the FreeCad Gui

image

  1. Box object is made

image

  And auto exported/downloaded as a box.step file in /py_scripts

image

  Python works Great!

  (If Needed) shutdown container - docker compose down

ISSUE THE CLI doesn't WORK

  1. Delete the box.step file so we know if the python script was ran again.

image

  1. Docker Exec into the running container

docker exec -it freecad bash

image

  1. cd into the py_scripts directory

image

  1. Open the freecadcmd cli to make sure it works

image

  This is due to Python environment variables…

Correct Example Usage:

https://youtu.be/RQW723n3DkU?si=dIt7jef6VmLHqkaF&t=596 image

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 image

About

CLI to the LinuxServer/FreeCad -FileNotFoundError: [Errno 2] No such file or directory: '/lsiopy/bin/activate_this.py

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published