Packages installed using addon manager not showing up in the code
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Reproduce the failure in a fresh Windows 11 FreeCAD installation using the Addon Manager, then inspect the AdditionalPythonPackages folder and test imports in the Python console. The work is done when shapely.geometry and docx.Document import successfully after installing the Rocket WB optional packages and restarting FreeCAD.
Written by the indexing model from the issue text.
Description
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:
- Install FreeCAD
- Using the Addon Manager, install the Rocket WB.
- When prompted, include the optional installs: CfdOF, shapely, and python-docx
- 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
- Dominant language
- Python
- Stars
- 24
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FreeCAD/AddonManager
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
FreeCAD/AddonManager#534 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
FreeCAD/AddonManager#532 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 22/100
FreeCAD/AddonManager#529 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
FreeCAD/AddonManager#528 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
FreeCAD/AddonManager#527 · 1 comment ·
All issues in FreeCAD/AddonManager
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hugohe3/ppt-master#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
521xueweihan/HelloGitHub#4716 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
pcqpcq/open-source-android-apps#619 ·
Maintainers usually reply within 1 day
-
contribution Windows 主机
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Lee-xeo/Claude-Cage#1519 ·
Maintainers usually reply within 1 day