-
Notifications
You must be signed in to change notification settings - Fork 94
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
Error when saving file with gear #146
Comments
The addon-manager is not using the latest version. Try installing freecad.gears manually. |
Thanks for the quick reply! |
It depends on how you installed freecad. |
Simply downloaded the Windows installer and installed it... |
Ok then you need to install freecad.gears with the same python that is also shipped with freecad. Or you simple copy to the right place ..../lib/sitepackages |
it seems like you installed it to python 3.10. If freecad uses python 3.8.10 it will not see the installed freecad.gears. Maybe you can raise an issue for FreeCAD and show that the add-on-manager is not using the latest version of freecad.gears. |
I see, thanks for explaining this to me! |
To follow up on this. When saving the file with a generated gear, I had an error when the workbench was installed using the built-in addon manager. Here is the error message in the console:
I have just tried installing the gear workbench in FreeCAD on MacOS using pip. For that, I have cd'd into /Applications/FreeCAD.app/Contents/Resources/bin/ and run: Everything was installed without problem, however, the same error remains. ./python --version prints: "Python 3.10.13" The file is actually saved, and the generated gear is there after re-opening, but probably with some information loss. |
@chennes do you know why some people have problems install the latest version of this workbench with the addonmanager? |
I just installed it with the Addon Manager and it worked fine (though I don't know how to test that the WB itself is working, I just hit install, restarted, then launched it). |
@chennes See the OP: just create a timing gear and save it. Then you'll see (or not :) ) the issue. |
Same problem here.
The next exception is triggered when saving the project. Also, it is triggered for every gear, not just once.
|
Can confirm with Python 3.11:
|
Same errors saving (as described in [#146#issuecomment-2111358476]) when installing latest manually (#146 (comment))
V1.2.0 was added to package.xml in 6197bfd Here are all the commits since then and doing a quick scan I didn't see any that might fix this issue: 6197bfd...master |
I just installed this WB for the latest FreeCAD (0.21.2) as I need to add a timing gear to my project. The gear appear fine, I can change its properties, all is good, but when I save the project, I get the following error in the 'Report view':
While trying to figure out what causes this I noticed that any gear type causes the same problem.
Is it possible that the current version of the WB is not compatible with the latest version of FreeCAD? Or something is wrong in my environment? All other WBs work fine on my computer. My environment is a 64 bit Windows 11.
Thank you in advance for any pointers!
The text was updated successfully, but these errors were encountered: