While activating Blendercam add-on, I got this error:
However, instead of the "No module named 'curve_simplify' ", before I got the "No module named 'shapely' ". As such, I was forced to manually pip install the packages through the command line.
I would like to automate this process so that future non-technical users don't go through manual python installation as well.
My manual installation fix
Run powershell as Administrator
Go to Blender python bin folder. In my case: cd C:\Program Files\Blender-4.2\4\python\bin
Remove user system installs of required packages: pip uninstall shapely numpy Equation. This is so that the system packages and the local blender packages are not mixed.
Problem Summary
While activating Blendercam add-on, I got this error:
However, instead of the "No module named 'curve_simplify' ", before I got the "No module named 'shapely' ". As such, I was forced to manually pip install the packages through the command line.
I would like to automate this process so that future non-technical users don't go through manual python installation as well.
My manual installation fix
cd C:\Program Files\Blender-4.2\4\python\bin
pip uninstall shapely numpy Equation
. This is so that the system packages and the local blender packages are not mixed..\python.exe -m pip install numpy shapely Equation
Location of problem
I took a look at the code and the problem might take place inside
scripts/addons/cam/__init__.py
. Specifically at line 39 to 47:I am not sure what causes the automatic installation to not work as the code snippet looks mostly good but that's to figure out.
Software used
Disclaimer
I hope this issue helps as my contribution to Blendercam