Addonmanager problems

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addonmanager problems

Post by kisolre »

Zoom1_1 macro does not show in the list. I have it installed but since I was now sure how I did that I renamed it to zoom1_1.bak.FCMacro... still does not show in the AddonManager. Restarting FreeCAD and refreshing cache does not help.
.
NoZoom1_1.JPG
NoZoom1_1.JPG (136.02 KiB) Viewed 2399 times
.
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.27100 (Git)
Build type: Release
Branch: master
Hash: b9280ae760182783f74eddc77a114686c4143e00
Python version: 3.8.8
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addonmanager problems

Post by chennes »

Actually, you're missing everything after ViewRotation, which is about a dozen macros not showing for you (that is to say, it's not specific to Zoom 1:1). Can you please run with logging turned on and have a look at the log file for errors?

ETA: I think you're missing anything that's on the Wiki, did you get an error message about that?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addonmanager problems

Post by kisolre »

chennes wrote: Wed Jan 19, 2022 10:23 pm did you get an error message about that?
Looks like it:

Code: Select all

01:03:59  Checking network connection...
01:03:59  GitHub's zen message response: Encourage flow.
01:03:59  Addon Manager internal error: lost metadata for package InvGears
01:04:05  Error loading https://wiki.freecad.org/Macros_recipes:
 [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)
01:04:05  There appears to be an issue connecting to the Wiki, therefore FreeCAD cannot retrieve the Wiki macro list at this time
01:04:07  Found a package.xml file for 3DfindIT
01:04:07  Found a metadata.txt file for CfdOF
01:04:07  CfdOF workbench requires FreeCAD Addon 'FemWorkbench'
01:04:07  CfdOF workbench requires FreeCAD Addon 'PlotWorkbench'
01:04:07  CfdOF workbench requires python package 'matplotlib'
01:04:07  Found a package.xml file for AirPlaneDesign
01:04:07  Found a package.xml file for Assembly4
01:04:08  Found a package.xml file for Beltrami
01:04:08  Found a metadata.txt file for BIM
01:04:08  BIM requires FreeCAD Addon 'ArchWorkbench'
01:04:09  Found a package.xml file for CfdOF
01:04:09  Found a metadata.txt file for Cfd
01:04:09  Cfd requires FreeCAD Addon 'Fem'
01:04:09  Cfd requires FreeCAD Addon 'Plot'
01:04:09  Cfd optionally imports python package 'numpy'
01:04:09  Found a package.xml file for CurvedShapes
01:04:09  Found a package.xml file for Curves
01:04:09  Found a package.xml file for DesignSPHysics
01:04:10  Found a metadata.txt file for DynamicData
01:04:10  Found a package.xml file for DynamicData
01:04:11  Found a metadata.txt file for InventorLoader
01:04:11  InventorLoader requires FreeCAD Addon 'Part'
01:04:11  InventorLoader requires FreeCAD Addon 'Draft'
01:04:11  InventorLoader requires FreeCAD Addon 'Sketcher'
01:04:11  InventorLoader requires python package 'olefile'
01:04:11  InventorLoader requires python package 'xlrd'
01:04:11  InventorLoader requires python package 'xlwt'
01:04:11  InventorLoader requires python package 'xlutils'
01:04:11  Found a package.xml file for kicadStepUpMod
01:04:12  Found a package.xml file for MeshRemodel
01:04:12  Found a metadata.txt file for MeshRemodel
01:04:13  Found a package.xml file for OpticsWorkbench
01:04:15  Found a package.xml file for Render
01:04:15  Found a package.xml file for Rocket
01:04:15  Found a package.xml file for sheetmetal
01:04:16  Found a metadata.txt file for SteelColumn
01:04:16  SteelColumn requires python package 'ezdxf'
01:04:16  Found a metadata.txt file for ThreadProfile
01:04:16  Found a package.xml file for ThreadProfile
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addonmanager problems

Post by chennes »

I am working on a permanent solution to that problem (it's one of the reasons for adding the QtNetwork dependency), but it's not ready yet. In the meantime, as long as you are on Python 3.9 or earlier, you can change the code in addonmanager_utilities.py that sets up the SSL connection: comment out the line that says "SERVER_AUTH" and uncomment the one above it, that says "CLIENT_AUTH".

https://github.com/FreeCAD/FreeCAD/blob ... ies.py#L51
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addonmanager problems

Post by kisolre »

That worked. Is is bad to have this as default?
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addonmanager problems

Post by chennes »

kisolre wrote: Thu Jan 20, 2022 9:44 am That worked. Is is bad to have this as default?
Well, it's technically incorrect, which starts to matter in Python 3.10, which doesn't accept it.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addonmanager problems

Post by chennes »

OK, I've got the PR done that I think should fix this SSL issue. Do you have time to test it out? https://github.com/FreeCAD/FreeCAD/pull/5412
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addonmanager problems

Post by kisolre »

chennes wrote: Sat Jan 22, 2022 1:16 am Do you have time to test it out?
Compiles and works with no errors, but i had to refresh local cache for all macros to show.
Any idea for those "possible duplicate" messages? Should I just reinstall them one by one or can this be suggested and automated?

Code: Select all

10:16:27  Checking network connection...
10:16:45  GitHub's zen message response: Encourage flow.
10:16:46  Addon Manager internal error: lost metadata for package InvGears
10:16:46  Addon Manager internal error: lost metadata for package InvGears
10:16:46  Addon Manager internal error: lost metadata for package InvGears
10:16:53  Failed to read metadata from C:\Users\Wivern\AppData\Roaming\FreeCAD\\Mod\InvGears\package.xml
10:17:12  Addon Manager internal error: lost metadata for package InvGears
10:17:35  Possible duplicate addon: ignoring second addition of SelectVisible
10:17:36  Possible duplicate addon: ignoring second addition of GuiResetToolbars
10:17:36  Possible duplicate addon: ignoring second addition of MessageBox
10:17:36  Possible duplicate addon: ignoring second addition of DeepCopy
10:17:36  Possible duplicate addon: ignoring second addition of MultiCopy
10:17:36  Possible duplicate addon: ignoring second addition of Rectellipse
10:17:36  Possible duplicate addon: ignoring second addition of MeasureCircle
10:17:36  Possible duplicate addon: ignoring second addition of CenterOfMass
10:17:36  Possible duplicate addon: ignoring second addition of SimpleProperties
10:17:37  Possible duplicate addon: ignoring second addition of HilbertCurve
10:17:37  Possible duplicate addon: ignoring second addition of AeroFoil
10:17:37  Possible duplicate addon: ignoring second addition of HighlightCommon
10:17:37  Possible duplicate addon: ignoring second addition of HighlightDifference
10:17:37  Possible duplicate addon: ignoring second addition of SketchUnmap
10:17:37  Possible duplicate addon: ignoring second addition of PlacementAbsolufy
10:17:37  Possible duplicate addon: ignoring second addition of SplitPropEditor
10:17:37  Possible duplicate addon: ignoring second addition of StraightenObject
10:17:37  Possible duplicate addon: ignoring second addition of TreeToAscii
10:17:38  CfdOF workbench requires FreeCAD Addon 'FemWorkbench'
10:17:38  CfdOF workbench requires FreeCAD Addon 'PlotWorkbench'
10:17:38  CfdOF workbench requires python package 'matplotlib'
10:17:40  BIM requires FreeCAD Addon 'ArchWorkbench'
10:17:41  Cfd requires FreeCAD Addon 'Fem'
10:17:41  Cfd requires FreeCAD Addon 'Plot'
10:17:41  Cfd optionally imports python package 'numpy'
10:17:45  InventorLoader requires FreeCAD Addon 'Part'
10:17:45  InventorLoader requires FreeCAD Addon 'Draft'
10:17:45  InventorLoader requires FreeCAD Addon 'Sketcher'
10:17:45  InventorLoader requires python package 'olefile'
10:17:45  InventorLoader requires python package 'xlrd'
10:17:45  InventorLoader requires python package 'xlwt'
10:17:45  InventorLoader requires python package 'xlutils'
10:17:53  SteelColumn requires python package 'ezdxf'
10:18:01  setCachingEnabled:  6  bytesDownloaded
10:18:01  QNetworkReplyImpl: backend error: caching was enabled after some bytes had been written
10:18:49  Hide main window
10:19:10  Show main window
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.27148 +4 (Git)
Build type: Release
Branch: addonManagerQtNetworkProxy
Hash: d76202405a60e7d6350bb0661f2fa51a784066be
Python version: 3.8.8
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addonmanager problems

Post by chennes »

kisolre wrote: Sat Jan 22, 2022 8:24 am Any idea for those "possible duplicate" messages? Should I just reinstall them one by one or can this be suggested and automated?
The duplicates aren't local to your system: they are macros that are both in the git repo and the wiki. There's nothing for you to do there.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addonmanager problems

Post by kisolre »

When trying to scale(zoom) Readme.md viewer with Ctrl-mouse scroll only the text is scaled but images are not. If those images are bigger that the window one has to scroll left/right/up/down to see all parts of the image instead of zooming in/out.

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.27221 (Git)
Build type: Release
Branch: master
Hash: 4a18442e049a522ef46278493010d9320925bd0d
Python version: 3.8.8
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
Post Reply