Closed CBtiger closed 2 years ago
This isn't really an Addon Manager bug -- @realthunder should remove "py-slvs" as a dependency if he wants to handle installing it himself. In the meantime, when the Addon Manager asks you if you want to install the dependency, click "Ignore" instead of "Install".
So just to be clear, @chennes , is it true that the package.xml
dependency is meant only for non-native Python package?
Right now it is meant just to tell the Addon Manager to install the package if it can't find it on the system already.
But if the package is binary, it is only compatible with the Python version it is compiled with. And since the AddonManager installs the package in a version-less directory, it may cause problem when running FreeCAD compiled with different Python version.
I see your point, I wasn't thinking about binary packages (or really, multiple simultaneous Python versions)-- I'll change the Addon Manager to version that directory.
Describe the bug AddOn Manager does install the python solverspace binding for the ASM 3 workbench into the subfolder "AdditionalPythonPackages". The problem with that is that different Python versions are installed in the same place causing conflicts when different FreeCAD versions are used (e.g. different AppImages). Since the Asm3 does install its required py-slvs but it own when its not found this AddOnManager feature is not required any more and should be removed.
Here the relevant section from a Realthunder answer from one of the references
.. the new AddonManager installs the dependency in .local/share/FreeCAD/AdditionalPythonPackages which may cause problem if you are alternating AppImages that pack different version of Python, because py_slvs is a native package. Please go in this directory and manually remove all py_slvs directories. Then start FreeCAD, and if you've already have asm3 installed, switch to the workbench and it will prompt to install py_slvs. Try and see if this can get it installed. If you haven't installed asm3 (or removed it previously), when prompt to install dependency, choose Ignore and try.
References: https://github.com/realthunder/FreeCAD_assembly3/issues/1282 https://github.com/FreeCAD/FreeCAD-Bundle/issues/139
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Note
Screenshots n/a
Desktop (please complete the following information):
Additional context n/a