PyQt4 Need to move DLLs to package root

Posted by Xavier on Stack Overflow See other posts from Stack Overflow or by Xavier
Published on 2011-01-06T15:56:40Z Indexed on 2011/01/06 17:54 UTC
Read the original article Hit count: 226

Filed under:
|

Hi Guys,

I've used the new installers from http://www.riverbankcomputing.co.uk/software/pyqt/download for Python 2.6 x86_64 and I've a small problem importing PyQt4 in one particular application.

Here's the traceback:

# ERROR : Traceback (most recent call last):
#   File "<Script Block >", line 2, in <module>
#     from PyQt4 import QtCore
# ImportError: DLL load failed: The specified procedure could not be found.
#  - [line 2]

This might look familiar. Fun thing is that in a previous version of the 3d software it does work (and from a standard command line), but not in the new software version. I inspected the sys.path (within the app) in order to see if this path was there: C:\Python26\Lib\site-packages\PyQt4\bin

In both application this path is present.

Finally managed to make it works by copying the DLLs from C:\Python26\Lib\site-packages\PyQt4\bin to C:\Python26\Lib\site-packages\PyQt4

Is there any known reason for this? I've a hard time debugging this thing further (making sure everything is 64 bit, path are correct, etc)

Thanks for your help

© Stack Overflow or respective owner

Related posts about python

Related posts about pyqt4