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
pip missing in Freecad 0.20 flatpak builds #88
Comments
And where would pip install things? We could add pv-slvs to the flatpak, but there is no source package on pypi available. |
IMHO the workbench should bundle it and not depend on "system wide" installation. (it's not the only one that require external python modules) |
Just CCing @realthunder on this as well so it's on his radar. |
|
I couldn't find a source distribution on pypi. And what is the licensing problem you are mentioning, because if you can bundle it, I don't think we can either. |
The pipy package home links to the repo. It is licensed under GPL, while FreeCAD is LGPL. I don't mean to bundle py-slvs. I mean to bundle pip itself, which is what I assume what's missing here. py-slvs will be installed on demand by user explicitly. |
So I will reiterate the question #88 (comment): where will pip install this module? Just to clarify. The file system is READ ONLY inside the sandbox. And my armchair analysis of licensing is that if you can't bundle |
I am not sure how |
I think the add-on manager uses a freecad specific directory for pip packages, if I'm not mistaken they are installed somewhere in $XDG_DATA_HOME which should available to write for the flatpak. |
@AmeyaPatwardhan maybe try this with the adjustments for the FreeCAD app. You will need to override the |
@tinywrkb tried using the suggested approach. I could not get it to work. However, this may be because of my lack of knowledge of flatpak environment variables, chroot etc. Is there any way to create a python virtual environment and simply add this to the flatpak path? |
The Addon Manager installs Python dependencies in a directory immediately adjacent to the Mod directory itself, called |
@AmeyaPatwardhan it works fine for me over here. I suggest that you wait for pip to be bundled with this Flatpak, but if really want to try, then it's pretty easy.
You can also explicitly set |
Unable to install Assembly3 in Freecad 0.20 (Flatpak) on Ubuntu 20.04
Upon using the addon manager-> Assembly3->Install,
and clicking yes to install the python dependencies (py-slvs) the following message pops up:
Failed to execute pip, which may be missing from your Python installation. Please ensure your system has pip installed and try again. The failed command was:
/usr/bin/python3 -m pip --version
Continue with installation of Assembly3 anyway?
Freecad version:
FreeCAD - An open source parametric 3D CAD modeler
ID: org.freecadweb.FreeCAD
Ref: app/org.freecadweb.FreeCAD/x86_64/stable
Arch: x86_64
Branch: stable
Version: 0.20.0.29177
License: LGPL-2.1
Origin: flathub
Collection: org.flathub.Stable
Installation: user
Installed: 1.0 GB
Runtime: org.kde.Platform/x86_64/5.15-21.08
Sdk: org.kde.Sdk/x86_64/5.15-21.08
The text was updated successfully, but these errors were encountered: