Skip to content

Packages installed using addon manager not showing up in the code #276

@davesrocketshop

Description

@davesrocketshop

This can be difficult to reproduce. If a package is installed locally, as in for development, this problem is masked. In order to reproduce, I had to create a fresh virtual machine with no FreeCAD installed. With that in mind, do the following:

  1. Install FreeCAD
  2. Using the Addon Manager, install the Rocket WB.
  3. When prompted, include the optional installs: CfdOF, shapely, and python-docx
  4. Restart

Checking the AdditionalPythonPackages folder, all packages are in there. However trying to load them using the Rocket WB produces module not found errors. This can be shown from the Python console:

Python 3.11.13 | packaged by conda-forge | (main, Jun  4 2025, 14:39:58) [MSC v.1943 64 bit (AMD64)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> # Gui.runCommand('Start_Start',0)
>>> # Gui.runCommand('Std_Workbench',11)
>>> # Gui.runCommand('Std_ViewStatusBar',1)
>>> import shapely
>>> from shapely.geometry import Polygon
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Program Files\FreeCAD 1.0\bin\Lib\site-packages\shiboken2\files.dir\shibokensupport\feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'shapely.geometry'
>>> from docx import Document
Traceback (most recent call last):
  File "<input>", line 1, in <module>
ImportError: cannot import name 'Document' from 'docx' (unknown location)
>>> 


OS: Windows 11 build 22621
Architecture: x86_64
Version: 1.0.2.39319 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.2)
Hash: 256fc7eff3379911ab5daf88e10182c509aa8052
Python 3.11.13, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion
Installed mods: 
  * AddonManager 2025.10.16
  * CfdOF 1.33.1
  * manifest.json
  * Rocket 5.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions