[PyQt] ImportError with v4.7 Windows Binary
Doug Bell
dougb at bellz.org
Mon Jan 25 12:09:51 GMT 2010
Phil Thompson wrote:
> On Fri, 22 Jan 2010 10:12:37 -0500, Doug Bell <dougb at bellz.org> wrote:
> > Phil Thompson wrote:
> >> On Fri, 22 Jan 2010 10:00:13 -0500, Doug Bell <dougb at bellz.org> wrote:
> >> > Phil Thompson wrote:
> >> >> On Fri, 22 Jan 2010 09:03:53 -0500, Doug Bell <dougb at bellz.org>
> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > I installed PyQt 4.7 with the new Windows installer. When trying
> >> >> > to use
> >> >> > it, I get the following error:
> >> >> >
> >> >> > C:\Misc>python
> >> >> > Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
> >> >> > (Intel)] on win32
> >> >> > Type "help", "copyright", "credits" or "license" for more
> >> >> > information.
> >> >> >>>> from PyQt4 import QtCore, QtGui
> >> >> > Traceback (most recent call last):
> >> >> > File "<stdin>", line 1, in <module>
> >> >> > ImportError: DLL load failed: The specified procedure could not be
> >> >> > found.
> >> >> >
> >> >> > This is on a PC running Windows XP SP3. I don't see anything
> >> >> > obviously wrong with the installation (qt.conf is OK, the path
> >> >> > includes the bin
> >> >> > directory, nothing is left over from a previous version, etc.).
> >> >> > Also note that I don't have an administrator login on this PC.
> >> >> >
> >> >> > Any ideas?
> >> >>
> >> >> Did you start your DOS shell after installing?
> >> >
> >> > Yes, I ever rebooted, and it didn't help.
> >> >
> >> >> Can you run Designer?
> >> >
> >> > Yes, Designer runs.
> >>
> >> What is on your PATH?
> >
> > C:\Source\Python26\Lib\site-packages\PyQt4\bin
>
> Sorry, I have no explanation. If moving the DLLs works then it implies a
> PATH problem - but your PATH seems Ok.
FYI, I finaly found the problem. There is a commercial program
(CFDesign, from Blue Ridge Numerics) installed on this PC that uses Qt
and has Qt DLLs in a directory that is included in the PATH. If the
CFDesign directory is renamed, then PyQt works again.
I'm not sure what sequence Windows uses for finding DLLs on the PATH,
but it evidently isn't in the order given in the environment variable.
Doug
More information about the PyQt
mailing list