Addon Manager problem

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Addon Manager problem

Post by onekk »

Hello.
chennes wrote:...

Not to pollute AddOn manager in "Announcements & Features" as @GeneFC is complaining about polluting the thread.

I have this problem with 0.21:

Code: Select all

pip took longer than 30 seconds to return results, giving up on itTraceback (most recent call last):
  File "/home/carlo-arch/miniconda3/envs/fcenv-dev/Mod/AddonManager/manage_python_dependencies.py", line 54, in run
    if check_for_python_package_updates():
  File "/home/carlo-arch/miniconda3/envs/fcenv-dev/Mod/AddonManager/manage_python_dependencies.py", line 64, in check_for_python_package_updates
    outdated_packages_stdout = call_pip(["list", "-o", "--path", vendor_path])
  File "/home/carlo-arch/miniconda3/envs/fcenv-dev/Mod/AddonManager/manage_python_dependencies.py", line 112, in call_pip
    raise Exception(proc.stderr.decode())
UnboundLocalError: local variable 'proc' referenced before assignment

using this version of FC (conda-install):

Code: Select all

OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.21.30454 (Git)
Build type: Release
Branch: master
Hash: 5df954690787dedbbf3c35f658f010f388474676
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Italian/Italy (it_IT)
Installed mods: 
  * fcgear 1.0.0
  * Assembly4 0.12.4
  * toSketch 1.0.1
  * Curves 0.5.8
  * Help 1.0.3
It is freezing trying to load ThreadProfile, or similar Addon.

Sorry for not being more precise, but it freeze and FC windows and Addon Manager dialog windows is garbaged.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
chennes
Veteran
Posts: 3883
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager problem

Post by chennes »

That's the bit of code I was working on to resolve the last issue you reported -- it seems like maybe it isn't finding your Python executable (which is sort of crazy) -- however, I have tweaked that code to perhaps give an actual error message instead of crashing in that case, in git commit 5a14ff96f4.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Addon Manager problem

Post by onekk »

Thanks I will try to find a way to correct the sources.

Or I have to wait for a new conda-install version.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply