[PyQt] ImportError: DLL load failed: %1 is not a valid Win32 application.

Phil Thompson phil at riverbankcomputing.com
Wed Dec 31 10:14:18 GMT 2008


On Tue, 30 Dec 2008 14:23:57 -0800, "chrysl666_ L666" <chrysl666 at gmail.com>
wrote:
> Hi folk  is my first try using PyQt  ..
> 
> i have  downloaded  and install PyQT4 version :
> PyQt-Py2.6-gpl-4.4.4-2.exe
> and  MSVC2008 C++ runtime DLLs
> 
> and in my first try  using with the simple script
> ______________________________________
> *#!/usr/bin/env python*
> *# PyQt tutorial 1*
> 
> *import sys
> from PyQt4 import QtGui*
> 
> *app = QtGui.QApplication(sys.argv)*
> *hello = QtGui.QPushButton("Hello world!")
> hello.resize(100, 30)*
> *hello.show()*
> *sys.exit(app.exec_())*
> *_____________________________________*
> **
> *python shell send  me the folowing error :*
> **
> Traceback (most recent call last):
>   File "C:\Python26\Lib\site-packages\PyQt4\examples\tutorial\t1.pyw",
line
> 7, in <module>
>     from PyQt4 import QtGui
> ImportError: DLL load failed: %1 is not a valid Win32 application.
> 
> my windows is a Vista 64  running over a AMD Turion 64
> my python 2.6  64AMD version
> 
> *any ideia how to fix this error?*
> *tnx for help me !!*

I don't see how a 64 bit interpreter can be expected to handle a 32 bit
.pyd extension.

Phil


More information about the PyQt mailing list