Addon Manager - Macros

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
gsandy
Posts: 276
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Addon Manager - Macros

Post by gsandy »

When I go to "Addon Manager - Macros" I get "Downloading list of macros from the FreeCAD wiki..." and nothing else.

I have found a solution online that suggests changing line 149 of addonmanager_macro.py: to "FreeCAD.Console.PrintWarning(translate("AddonsInstaller", "Unable to clean macro code: ") + str(code) + '\n')".
I found the file in "Program Files/Freecad/Mod/Addonmanager/".

On opening "addonmanager_macro.py" I am unable to find the above line of code!

Is there another way of getting the macro list to appear?

OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/New Zealand (en_NZ)
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager - Macros

Post by TheMarkster »

You're getting the failed to load wiki warning in the report view? I did some debugging and ran across this exception:

error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)>

This happens in Windows, but not inside a VirtualBox VM running Ubuntu.

It also doesn't happen in an old version with python2/qt4 of 0.18. My guess is it's some kind of a packaging error. Did you try both windows builds (conda and libpack)? I only have the conda builds installed right now for 0.19 and 0.20.
gsandy
Posts: 276
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Re: Addon Manager - Macros

Post by gsandy »

Thanks TheMarkster, this is the one I used (but the current version):
Which one should I try?
Attachments
Forum 25-10-21.png
Forum 25-10-21.png (108.58 KiB) Viewed 2189 times
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager - Macros

Post by TheMarkster »

The LP (lib pack) version since you already tried the conda version.

This one is out of date, but I believe the addon manager works with it. You could use only for installing macros as a workaround. I have the same build still installed, but a slightly older version (16093 instead of 16110).

https://github.com/FreeCAD/FreeCAD/rele ... ortable.7z
gsandy
Posts: 276
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Re: Addon Manager - Macros

Post by gsandy »

Downloaded and installed the LP version.
The Addonmanager-Workbenches only showed "3D_Printing_tools" (I have seen that problem in the forum).
The Addonmanager-Macros showed the macros available but they were greyed out, and it got stuck on the loading!
Do other people get my problem with the macros not showing with the latest Freecad version or is it peculiar to my setup?
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager - Macros

Post by TheMarkster »

gsandy
Posts: 276
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Re: Addon Manager - Macros

Post by gsandy »

Thanks again. made the suggested changes and it works just fine.

Will this issue be addressed in future releases of Freecad?
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager - Macros

Post by TheMarkster »

Yes, it will be fixed one way or the other, whether its a server-side issue or a packaging issue.
gsandy
Posts: 276
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Re: Addon Manager - Macros

Post by gsandy »

Great. And in the meantime we can just modify the code to keep it working. :D
geone
Posts: 1
Joined: Sat Nov 21, 2020 1:23 am

Re: Addon Manager - Macros

Post by geone »

when trying to load Micros in the addon manager, I get the following error message:
"seems to be an issue connecting to Wiki, there for, macros cannot be loaded site:forum.freecadweb.org"
workbench section downloads fine.
any suggestions...

win10
64bit
Ver 1.9.2 (Freecad) second clean install
Post Reply