Reshure Reshure - 4 months ago 28
Python Question

PyQt 4.7 - ImportError after installing on Windows

I've been trying to install PyQt 4.7 on Vista, but I am getting an ImportError when I try to do:

from PyQt4 import QtCore, QtGui

ImportError: DLL load failed: The specified module could not be found.

I've checked my System Path, and C:\Python31\Lib\site-packages\PyQt4\bin is on there.

I can't run any of the examples, but the Designer, Assistant and Linguist run fine.

I am using ActivePython 3.1, if that makes any difference. And I haven't had any previous version of PyQt installed.


I've copied the QtCore4 and GtGui4 dlls to C:\Python31\Lib\site-packages\PyQt4. That fixes some of the examples, but I still can't use the example browser.


Are you sure there is a \bin directory for your version of PyQt? I am running PyQt 4.4, and all my binaries are right in:


Which is what I have my path pointing too. It sounds like PyQt4 was installed improperly... did you run this?

python install

There shouldn't be a bin there...