ID 427420 - libeay32.dll and ssleay32.dll are missing, which can cause PySide2 networking errors

Follow

Problem summary
libeay32.dll and ssleay32.dll are missing, which can cause PySide2 networking errors

In this case using QtNetwork.QNetworkAccessManager() with a https website returns no data with error: PySide2.QtNetwork.QNetworkReply.NetworkError.UnknownNetworkError

This only affects Windows, as the error does not occur on Linux or Mac


Customer reported version
nuke.11.3v1


Customer reported platform
windows10


Steps to reproduce


1) Open Nuke

2) Open the Script Editor, and run the below code:

from PySide2 import QtCore, QtWidgets, QtGui, QtNetwork

nam = QtNetwork.QNetworkAccessManager()

url = 'https://www.foundry.com'

request = QtNetwork.QNetworkRequest( url )

reply = nam.get( request )

def answer():

    c = reply.readAll()

    print ("Len: %d" % len(c))

    print ("Data:"+str(c[:4]))

    print ("Error: "+ str(reply.error()))

    print (reply.errorString())

reply.finished.connect(answer)

*You can also check the Nuke install for libeay32.dll and ssleay32.dll files


Expected behaviour
For Nuke to return and for the files to be in Nuke's install directory:

Len: 21963

Data:<!DO

Error: PySide2.QtNetwork.QNetworkReply.NetworkError.NoError

Unknown error


Actual behaviour
The files are not there and Nuke returns:

Len: 0

Data:

Error: PySide2.QtNetwork.QNetworkReply.NetworkError.UnknownNetworkError

TLS initialization failed


Workaround
Add a location to your PATH environment variable that contains libeay32.dll and ssleay32.dll files


Reproduced by support
This bug has been reproduced in:

Nuke 12.1v1 - Windows 10

Nuke 12.0v1 - Windows 10 - regression


Unable to reproduce bug in:
Nuke 12.1v1 - macOS 10.13 - CentOS 7.7

Nuke 11.3v6 - Windows 10


Earliest version tested
Nuke 11.3v6 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why