On Tue, 9 Nov 2010 13:23:43 -0700, "Brett Stottlemyer"
<[email protected]> wrote:
> I've got a PyQt application that I'm converting to an exe using py2exe.
> When I install the app on a new machine and run it, I get the following
> exception.  
> 
>  
> 
>  File "C:\<Location>\hub\Application.py", line 29, in <module>
>     from PyQt4.QtNetwork import *
>   File "PyQt4\QtNetwork.pyc", line 12, in <module>
>   File "PyQt4\QtNetwork.pyc", line 10, in __load
> ImportError: DLL load failed: The specified module could not be found.
> 
>  
> 
> I've got the following in my py2exe options:
> 
>                    includes=["encodings", "encodings.*", "imports",
"sip",
> "PyQt4.QtNetwork",
> 
>                             "PyQt4.Qsci"
> 
>                     ],
> 
>  
> 
> I can successfully import QtCore/QtGui/Qsci, it is just QtNetwork that
is
> giving me trouble.  The installer does install PyQt4.QtNetwork.pyd and
> QtNetwork4.dll on the new machine in the lib26 directory with the other
> PyQt4.*.pyd ad Qt*.dll files.
> 
>  
> 
> Everything was working with previous versions (Qt 4.6).  I'm not sure it
> matters, but I'm building the installer with Inno setup.  If I uninstall
> PyQt4.8.1 and install PyQt4.7.7 then rebuild, everything works normally,
> which leads me to think this is an issue with PyQt and Qt 4.7 (and
Python
> 2.6).  Is anyone else having this problem?  Suggestions on how to fix
it?

The PyQt v4.8 Windows installers include the OpenSSL DLLs which
QtNetwork.pyd is linked against, so you probably need to add them to the
list of things that py2exe should bundle.

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to