[PyQt] [BUG?] ImportError with QtNetwork since updating to 5.4.2 on Windows

Phil Thompson phil at riverbankcomputing.com
Wed Jun 17 21:57:30 BST 2015


On 15/06/2015 4:45 pm, Florian Bruhin wrote:
> * Phil Thompson <phil at riverbankcomputing.com> [2015-06-15 16:09:08 
> +0100]:
>> On 15/06/2015 1:31 pm, Florian Bruhin wrote:
>> >Hi!
>> >
>> >Since I upgraded from PyQt5 5.4.1 to 5.4.2 (both installed using the
>> >binary installer, PyQt5-5.4.2-gpl-Py3.4-Qt5.4.2-x64.exe), I get this
>> >when trying to import QtNetwork:
>> >
>> >    >>> from PyQt5 import QtNetwork
>> >    Traceback (most recent call last):
>> >      File "<stdin>", line 1, in <module>
>> >    ImportError: DLL load failed: %1 is not a valid Win32 application.
>> >
>> >Importing QtCore works fine however:
>> >
>> >    >>> from PyQt5 import QtCore
>> >    >>> QtCore
>> >    <module 'PyQt5.QtCore' from
>> >'C:\\Python34\\lib\\site-packages\\PyQt5\\QtCore.pyd'>
>> >
>> >The same thing works fine on AppVeyor with the 32bit .exe, so maybe
>> >it's something specific to that 64bit installer?
>> 
>> Not intentionally. You might be able to see what DLL is causing the 
>> problem
>> (using a dependency tracker). Otherwise I'll wait ti see if anybody 
>> else has
>> the same problem.
> 
> With dependency walker, I noticed SSLEAY32.DLL is a 32bit (CPU x86)
> rather than a 64bit DLL. I reinstalled 5.4.1 and it shows as 64bit
> there.

I can't reproduce this. I can import QtNetwork and "depends" shows 
SSLEAY32.DLL as 64 bits.

Phil


More information about the PyQt mailing list