-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named openpyxl #16
Comments
Hi, I think that is because I use openpyxl to convert letters to numbers and visa verca. Since yesterday, the Bill of Materials is available through the add-on manager. in the package.xml I've put openpyxl as a depency. Does this error still happen when you install the wb via the add-on manager? |
In my case, the Add-on Manager warns me of the missing dependency (but does not offer to install it). If I install the dependency manually, then I can resume the installation and it works. Running FreeCAD dev on Linux via snap. |
Unfortunely it's still happening, I tried to install the WB via add-on manager and repeated the same mesage that @furgo16 received. For me that I'm a newbie to python, I don't even know how to install openpyxl manually. If you can help, please explain how to install manually or put openpyxl package together with the BoMWB files. |
Hi, I've updated the package.xml to the latest standard, however I don't suspect that it makes any difference. I did find some info regarding snap images. with information on how to install/update python packages: I've also a link about the use of AppImages:
A alternative option to "Install" dependencies can be to do the following: ('ve done this in the past in Windows)
I hope this helps. In the meantime, I'll look into this further, because I plan to use openpyxl for other functions as well. kind regards, Paul |
Had the same problem. I use FreeCAD-Realthunder and I installed it using I solved it by opening the python console in FreeCAD and entering import subprocess
subprocess.run('python -m pip install openpyxl'.split()) I guess the same works for the "vanilla" FreeCAD and without snap. Hope it helps someone :) best |
The way I manually install Python dependencies for FreeCAD is the one documented on the snap package. E.g.:
|
None of the above solutions worked for me!
|
I've maybe another option. Can you try to run the following from a terminal: "C:\Program Files\FreeCAD 0.21\bin\python.exe" -m pip install openpyxl. Change the path of course to where your FreeCAD is located |
do you absolutely need openpyxl for that ? openpyxl - A Python library to read/write Excel 2010 xlsx/xlsm files ???? |
But it shows an error when selecting the WB! I wonder if it is necessary to run the WB? |
I'm planning to use it for future functions. I've also another workbench that depends heavily on it. Since I want to use it more, I'd like to understand why this occurs. I'll going to look into it futher this weekend. |
@mwlandolsi: at this point, you might want to seek forum help to resolve your installation issue: https://forum.freecad.org/viewtopic.php?t=84982
I had no issues with snap, other than having to install the dependency manually.
If it's only used for letter to digit conversion, would it not be simpler from a maintenance and installation point of view to use plain Python now and adopt the library if and when the future functions are added? Just a thought, thanks a lot for releasing the workbench! |
|
Hi, I've removed the dependency for openpyxl. I've made it an optional library for now and the current version of the WB doesn't need it. If you update to version 0.0.5.9, the problem should be fixed. So for now the issue is solved. However in the future this problem might occur again. The problems are related to the image systems in Linux. specificly snap and flatpack. These images needs a manual install for any python package that is not standard shipped with FreeCAD |
I can now launch the BoM WB, but not use it :
The text was updated successfully, but these errors were encountered: