Skip to content

The workbench does not appear in the Flatpak version of FreeCad #74

Description

@Pablofero

Dependency declaration issue

I got the following error on Ubuntu 25.04 with Flatpack and FreeCAD 1.1.1, Libs: 1.1.1R44874 (Git):
Error: Module scypi not found
I fixed it manually by doing pip3 install scipy --target . in the folder /home/${USER}/.var/app/org.freecad.FreeCAD/data/FreeCAD/v1-1/AdditionalPythonPackages/py313 (may need creating)

This should be correctly fixed by adding this line to package.xml:
<depend>scipy</depend>

Details in wiki here, also example
Then the dependency should then be listed in the Addon manager under the "Python dependencies..." button.

Python class name issue

Additionally I had to change the name of the class in the InitGui.py from OpticsWorkbench to opticsWorkbench, also modifying the last line with Gui.addWorkbench correspondingly. Without this modification, the OpticsWorkbench would not appear in the list of available Workbenches!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions