[done] FreeCAD 0.20.2 release by the end of November

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!
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: FreeCAD 0.20.2 release by the end of November

Post by uwestoehr »

Syres wrote: Tue Dec 06, 2022 9:22 pm

Code: Select all

21:18:22  During initialization the error "DLL load failed while importing _ssl: The specified module could not be found." occurred in C:\Users\JPS\AppData\Roaming\FreeCAD\Mod\CfdOF\.\InitGui.py
21:18:22  Please look into the log file for further information
I can reproduce this bug, bit this is independent on the AddonManager.

To reproduce, execute this command in the Python Console of FC:

Code: Select all

import ssl
I tested it and since we use Python 3.8.10 for the Windows builds, Python can only handle OpenSSL 1.1, not OpenSSL 3.x
Upgrading Python s not possible because then we would loos Win 7 compatibility.
So the only way I see is to make a new Windows installer that uses OpenSSL 1.1 for Python.

In general, for the next FC major release we need to upgrade Python and can then no longer support Win 7. As I know you use it, please upgrade to Win 10. It is not big trouble - I recently did this for my father. The upgrade was a surprisingly easy task and we could use the existing license key ( a professional license).

---------------

Besides this, @chennes can reproduce the AddonManager issue, so I will incorporate his fix before tagging a further version of FC.
lamikr
Posts: 14
Joined: Fri Jul 08, 2022 11:44 pm

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by lamikr »

Or try out Linux, honestly for example the gnome UI superiour to Windows once you get used to it.
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: FreeCAD 0.20.2 release by the end of November

Post by chennes »

uwestoehr wrote: Tue Dec 06, 2022 10:52 pm @chennes , can you reproduce this?
I found the commit that fixed this in master and cherry-picked it: git commit 283fec68f87e7797e3f37f6485e6d08b68ff01a4
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: FreeCAD 0.20.2 release by the end of November

Post by uwestoehr »

chennes wrote: Wed Dec 07, 2022 2:36 am I found the commit that fixed this in master and cherry-picked it: git commit 283fec68f87e7797e3f37f6485e6d08b68ff01a4
Many thanks!
I retagged the 0.20.2 release and will provide new Windows binaries tomorrow.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by uwestoehr »

New Windows binaries to test are now available:
https://github.com/FreeCAD/FreeCAD/releases/tag/0.20.2
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by Syres »

uwestoehr wrote: Wed Dec 07, 2022 1:41 pm New Windows binaries to test are now available:
https://github.com/FreeCAD/FreeCAD/releases/tag/0.20.2
The CfdOF error on starting up has gone thanks but the AddonManager messagebox error is still present along with a warning in the Report View of:

Code: Select all

10:26:28  Checking network connection...
10:26:28  QSslSocket::connectToHostEncrypted: TLS initialization failed
10:26:28  Addon Manager: Unexpected 0 response from server
which I assume is coming from https://github.com/FreeCAD/FreeCAD/blob ... er.py#L369

Code: Select all

OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git)
Build type: Release
Branch: (HEAD detached from 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * A2plus 0.4.56a
  * Assembly3 0.11.3
  * CfdOF 1.17.7
  * Curves 0.5.4
  * fasteners 0.3.51
  * fcgear 1.0.0
  * freecad.xray 2022.4.17
  * Help 1.0.3
  * Manipulator 1.4.9
  * Plot 2022.4.17
  * sheetmetal 0.2.57
  * Silk 1.0.0
  * timber
Edit: Added extra log info
Last edited by Syres on Thu Dec 08, 2022 10:27 am, edited 1 time in total.
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by Syres »

As an additional test, I moved the whole AddonManager folder out of 0.20.2 and copied in the 0.20.1 AddonManager folder to verify whether this is a python coding bug but this also fails under the 0.20.2 installation folder.

Root cause: Two files are missing from the src\bin folder:

Code: Select all

libssl-1_1-x64.dll
libcrypto-1_1-x64.dll
I copied them over from 0.20.1\bin folder and AddonManager started as expected.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by uwestoehr »

Syres wrote: Thu Dec 08, 2022 9:58 am The CfdOF error on starting up has gone thanks but the AddonManager messagebox error is still present along with a warning in the Report View of:

Code: Select all

10:26:28  Checking network connection...
10:26:28  QSslSocket::connectToHostEncrypted: TLS initialization failed
10:26:28  Addon Manager: Unexpected 0 response from server
Many thanks for testing. I see that you "fixed" is by bringing the outdates openSSL library back, but I need to understand why this is necessary.

Can you therefore please help me with this:
- when you right-click on the openssl.exe that is in the same folder than the FreeCAD.exe of 0.20.2, what version info do you get?
- How can I get the "Unexpected 0 response from server" message from the AddonManager? (I installed, and later also uninstalled CfdOF using the AddonManeger and don't get the message.)
User avatar
chennes
Veteran
Posts: 3877
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by chennes »

uwestoehr wrote: Fri Dec 09, 2022 12:56 am - How can I get the "Unexpected 0 response from server" message from the AddonManager?
In the case that @Syres is reporting, it's happening immediately upon launch of the Addon Manager because a secure connection to GitHub cannot be established. I've seen that in that past when a too-old version of OpenSSL is used (you must use at least 1.1.1l) -- what is the full version info of the currentt libssl in the newest libpack? Is it 1.1.1q?
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [done] FreeCAD 0.20.2 release by the end of November

Post by uwestoehr »

chennes wrote: Fri Dec 09, 2022 1:09 am
uwestoehr wrote: Fri Dec 09, 2022 12:56 am - How can I get the "Unexpected 0 response from server" message from the AddonManager?
In the case that @Syres is reporting, it's happening immediately upon launch of the Addon Manager because a secure connection to GitHub cannot be established. I've seen that in that past when a too-old version of OpenSSL is used (you must use at least 1.1.1l) -- what is the full version info of the currentt libssl in the newest libpack? Is it 1.1.1q?
Here I don't get any problems with FreCAD 0.20.2. This includes OpenSSL 3.0.7.

Can it be that the AddonManager expects the libssl DLL file unde a certain name? If so, what filename is expected? In the LibPack we have this name:
libssl-3-x64.dll
Post Reply