-
Notifications
You must be signed in to change notification settings - Fork 2
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
osecore exception with FreeCAD 0.19.1 OSE3DPrinter add-on #66
Comments
Hi @rayrrr, this issue is really more appropriate for the ose-3d-printer-workbench repository. I cover how to install
You are not the first person to have issues with this. See gbroques/ose-3d-printer-workbench#99.
Not without committing the entire The reason this installation process isn't smoother is FreeCAD does not have built in support for workbenches that depend upon I'm hoping they address this in the future and we can install in a single command like: # This would install ose-workbench-core as it's a dependency
pip install ose-3d-printer-workbench Let me know if you have ideas to improve the installation process or make the instructions clearer! :)
Likewise, thank you sir! |
@gbroques I did some research last night and I think the answer could be to leverage Python PEP-587. From the abstract:
I added the emphasis at the end there to highlight what I believe the relevant implication of PEP-587: in a C application with an embedded Python which is Python 3.8 or above, the C application can also manage its own Python virtualenv, so that FreeCAD Add-Ons such as OSE Workbenches can declare PyPi dependencies like the OSECore Python Module (if we ship it to PyPI as a package). It should then be possible for the C application to load and resolve those dependencies into its own virtualenv automatically via pip under the hood when using the GUI-based Add-On Manager (which is already written in Python) so FreeCAD end users don't have to deal with hidden directories or git cloning. However, this was implemented in Python 3.8 and the Python interpreter currently embedded in FreeCAD 0.19.1 is running Python 3.7.6. So, this would involve some significant upstream changes, but given that it would greatly increase the potential power of the Add-Ons system, it might get some traction. What do you think? |
On a quick read, the PEP-587 went a bit over my head. 😅 I will have to read this in more depth, but it sounds promising! 😄 As far as:
There's been a fair amount of talk in the FreeCAD community about this and some initial proof-of-concept work as well:
Primarily by a fellow named "looooo". I do not know the underlying technical details of it and whether each package could have it's own versions of dependencies, or each package must use the same version of a shared dependency. P.S.
To clarify, both |
Hi @gbroques! I'm happy to report that 3 days ago FreeCAD 0.19.1 was quietly released. Only the source code is available so far but I compiled it and it looks much better than the older versions overall, and the formerly-broken add-on manager works like a charm!
However, I tried installing the OSE 3D Printer workbench but got the following exception and traceback:
How does one install osecore? Is there some way to include this with the add-on? If not can we consider writing install instructions and/or releasing a PyPi package to make installation smoother?
I really want to get this working for the final OSE Linux 2.0 release...thanks for all your efforts!
The text was updated successfully, but these errors were encountered: