Addon Manager Redesign 2021

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

Your understanding of the .gitmodules file is basically correct, with the caveat that the Addon Manager assumes that the submodule name and path are identical. The name the Addon Manager displays is whatever it finds in the <name></name> element of package.xml -- if that is absent, then it uses the data from .gitmodules.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Addon Manager Redesign 2021

Post by onekk »

chennes wrote: Thu Sep 15, 2022 6:46 pm ...
Thanks.

I will do some test.

At a first glance itseems that the submodule is used even when the name tag is present and different in package.xml.

But I have to check better as probably there could be some problem with package.xml file and my actual installation of FC 0.21 seem not to have the developer tools.

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: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

Developer Tools is brand new, I added it at the beginning of this week.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Addon Manager Redesign 2021

Post by leoheck »

Hi Chennes, I was removing some old plugins and I got this issue here:

Code: Select all

➜  Applications Traceback (most recent call last):
  File "/tmp/.mount_FreeCAVnTdLM/usr/Mod/AddonManager/AddonManager.py", line 547, in reject
    thread.wait(25)
KeyboardInterrupt
➜  Applications Traceback (most recent call last):
  File "/tmp/.mount_FreeCAVnTdLM/usr/Mod/AddonManager/manage_python_dependencies.py", line 54, in run
    if check_for_python_package_updates():
  File "/tmp/.mount_FreeCAVnTdLM/usr/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 "/tmp/.mount_FreeCAVnTdLM/usr/Mod/AddonManager/manage_python_dependencies.py", line 92, in call_pip
    if proc.returncode != 0:
UnboundLocalError: local variable 'proc' referenced before assignment

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30377 (Git) AppImage
Build type: Release
Branch: master
Hash: 2462f4c7a05745488bb9e81ccc7ba0f386f78849
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Part-o-magic.backup1662467294.9039905
  * A2plus 0.4.59
  * Curves 0.5.8
  * fasteners 0.4.6
  * lattice2 1.0.0
  * Assembly4 0.12.4
  * kicadStepUpMod 10.15.1
  * Help 1.0.3
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

Thanks for the report -- I'll get that cleaned up shortly.

ETA: git commit ebb32633d8
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
KAKM
Posts: 109
Joined: Tue May 04, 2021 12:17 am

Re: Addon Manager Redesign 2021

Post by KAKM »

Is there a way to update the addon manager through the addon manager? If not, how do I go about it? It ate my CfdOF install, tells me it's still there, crashed when I tried to uninstall and reinstall, and before I report this as a bug I'd like to make sure you haven't fixed it already.
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

No, the Addon Manager isn't itself an Addon, so the only "update" to it is to update your FreeCAD. Can you paste in your version info?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Addon Manager Redesign 2021

Post by adrianinsaval »

chennes wrote: Fri Sep 16, 2022 3:59 am No, the Addon Manager isn't itself an Addon, so the only "update" to it is to update your FreeCAD. Can you paste in your version info?
maybe it should be one? I think it's written in python right?
KAKM
Posts: 109
Joined: Tue May 04, 2021 12:17 am

Re: Addon Manager Redesign 2021

Post by KAKM »

Bummer. The last time I tried to update FreeCAD for a bug fix being a bit aggravating because the homebrew builds were way behind the weekly.
chennes wrote: Fri Sep 16, 2022 3:59 am Can you paste in your version info?

Code: Select all

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.28901 +1 (Git)
Build type: Release
Branch: ipatch.builds.git.master.head.may10
Hash: 778a95f27e26e040ff29599847a224d44b7a5fa7
Python 3.10.4, Qt 5.15.3, Coin 4.0.1, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * Tutorial-dev
  * CfdOF
  * CfdOF.bak
  * Tutorial-dev.zip
Oh, and even though it claims that CfdOF is installed, the folder is empty. I tried deleting that folder to see if I could reinstall without a crash this time, and it still hung up a very small percentage of the way in, according to the progress bar. Clicking on the install button a second time crashes FreeCAD, which is exactly how it happened the first time around.
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Addon Manager Redesign 2021

Post by onekk »

... Amended post moved in the right forum thread.

Regards

Carlo D.
Last edited by onekk on Tue Sep 20, 2022 2:29 pm, edited 1 time in total.
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