[PyQt] PyQt4.QtCore not a valid Win32 application - with windows installer

Sibylle Koczian Sibylle.Koczian at t-online.de
Sun Jan 3 12:48:25 GMT 2010


Hello,

trying to import PyQt4.QtCore I get this:

Python 3.1.1 (r311:74483, Aug 17 2009, 16:45:59) [MSC v.1500 64 bit
(AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import PyQt4.QtCore
Traceback (most recent call last):
   File "<pyshell#4>", line 1, in <module>
     import PyQt4.QtCore
ImportError: DLL load failed: %1 ist keine zulässige Win32-Anwendung.

(Translation: %1 is no valid Win32 application.)

Using Windows 7 Home Premium 64 bit, Python version see above, PyQt from
the Windows installer: PyQt-Py3.1-gpl-4.6.2-2.exe.

I know there are earlier posts about this, but not, I think, with the
installer package from the Riverbank download page.

The Visual C++ redistributable package is installed in the 32 bit and in 
the 64 bit version.

One thing looked suspicious when I started the installation: I got a 
message window saying Python 3.1. "doesn't seem to be installed" - but 
it's there, in C:\Python31, and afterwards it was found without manual 
intervention.

What's the matter here?

Thank you,
Sibylle

-- 
Dr. Sibylle Koczian




More information about the PyQt mailing list