Win Conda nested asn1 error

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Win Conda nested asn1 error

Post by sgrogan »

Syres wrote: Thu Jun 04, 2020 7:51 am let's get some feedback positive or negative as to whether the solution/workaround can be implemented.
I will try to implement the workarond/solution.
"fight the good fight"
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Win Conda nested asn1 error

Post by Syres »

sgrogan wrote: Thu Jun 04, 2020 9:50 am I will try to implement the workarond/solution.
Just tried the new 0.19.21514 Conda build and it looks good to me, thanks for the efforts.

For info, I'll work on a proper solution for the mpmath and scipy errors when loading asm3, I think scipy can just be upgraded but the mpmath will need a bit more effort as there's not a release with the fixes included but it is in their master.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Win Conda nested asn1 error

Post by sgrogan »

Syres wrote: Sun Jun 07, 2020 10:00 pm Just tried the new 0.19.21514 Conda build and it looks good to me, thanks for the efforts.
Thanks, I'm still unable to include the original ssl.py as a backup https://travis-ci.org/github/FreeCAD/Fr ... 8686#L4426 I'm not sure why this isn't working?
Syres wrote: Sun Jun 07, 2020 10:00 pm For info, I'll work on a proper solution for the mpmath and scipy errors when loading asm3, I think scipy can just be upgraded
I'll look into this. I'm not sure why conda is using scypi 1.3.2 https://travis-ci.org/github/FreeCAD/Fr ... 8686#L4077 and not scipy 1.4.1 https://anaconda.org/anaconda/scipy
Maybe some other package is pinning it? Anyway I can test this locally in Conda.

Thanks for your continued testing and patching of these issues, your work is a big asset to the project!
"fight the good fight"
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Win Conda nested asn1 error

Post by Syres »

sgrogan wrote: Mon Jun 08, 2020 9:24 pm Thanks, I'm still unable to include the original ssl.py as a backup https://travis-ci.org/github/FreeCAD/Fr ... 8686#L4426 I'm not sure why this isn't working?
Don't worry at 5:30 this morning I was struggling to see why it wouldn't work but with plenty of petrol fumes (the good kind) I woke up!!

Change:

Code: Select all

rename %copy_dir%\bin\Lib\ssl.py %copy_dir%\bin\Lib\ssl-orig.py
to:

Code: Select all

move %copy_dir%\bin\Lib\ssl.py %copy_dir%\bin\Lib\ssl-orig.py
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Win Conda nested asn1 error

Post by sgrogan »

Syres wrote: Tue Jun 09, 2020 2:36 pm Don't worry at 5:30 this morning I was struggling to see why it wouldn't work but with plenty of petrol fumes (the good kind) I woke up!!
Thanks, I think

Code: Select all

rename %copy_dir%\bin\Lib\ssl.py ssl-orig.py
should also work.
"fight the good fight"
User avatar
mpetrasinovic
Posts: 106
Joined: Sat Feb 22, 2020 10:19 am
Location: Belgrade, Serbia
Contact:

Re: Win Conda nested asn1 error

Post by mpetrasinovic »

This is again a problem, this time with a 0.19 release (FreeCAD-0.19.1.a88db11-WIN-x64-installer.exe from https://github.com/FreeCAD/FreeCAD/releases/tag/0.19.1).

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
Smiling_user
Posts: 196
Joined: Tue Jul 28, 2020 7:31 am

Re: Win Conda nested asn1 error

Post by Smiling_user »

About weekly-builds version 0.20.25645 // As of 2021.09.11
[Tools>AddonManager] - option disappeared:
also mentioned here: with AddonManager not appearing in the Tools dropdown.
https://forum.freecadweb.org/viewtopic. ... 86#p316065

FreeCAD_0.20.25645_Win-LPv12.5.4_vc17.x-x86-64.7z 277 MB // in addition - is unusable: only main window loaded.
FreeCAD_weekly-builds-25645-Win-Conda_vc14.x-x86_64.7z 436 MB
Both versions do not accept addons copied to Mod folder either to main or user's. While the folder and files of AddonManager are all in the Mod folder.



Tried under windows 7 x64 (on two machines with an old an fresh install, where version 0.19.2 works almost fine)
Considering previous messages in this thread - some advises on file access rules might solve the problem (temporarily)...

The corresponding linux version 0.20.25645
FreeCAD_weekly-builds-25645-Linux-Conda_glibc2.12-x86_64.AppImage 905 MB
is working with no problem under Kubuntu Bionic - and friendly to 0.19.2.Appimage in parallel using in-share the same downloaded resources like Mod, Macros and parts-library.

Comment:
// Also this is the problem faced long ago (sometimes) with 0.18, 0.19. And sometimes AddonManager stops functioning normally also in working version.
This for, may developers consider creating an option to manually set the location for "AddonManager", "Mod", "Macros" and other library folders?
Either though *.conf file or *.bat file or menu would be fine.

// I hope, in general, that all important variables are made user-configurable.
Also this would be another nice step towards portability.

Gratefully. With respect.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Win Conda nested asn1 error

Post by GeneFC »

The addon manager works just fine for me. Same as always.

OS: Windows 7 SP 1 (6.1)
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git)
Build type: Release
Branch: master
Hash: 37d9757399b4c2ec30318eb88d7cd7c508246345
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)

This is the Conda version. The LibPack version (same release number) works as well. You did not show the "About" info, so I am not sure which version you are using.

A possible cause of the difficulty is that your "user.cfg" file is borked. Try renaming your existing user.cfg and let FreeCAD create a new one. You can go back to the original later if there is no change in the error behavior.

Gene
Post Reply