Search code examples
python-2.7pyqt4py2exepyinstallercx-freeze

PyQt Python GUI to Windows application


I created a Python GUI using pyqt4 and after converting it into an exe and running it I am get the following error:

**import error: DLL load failed %1 is not a valid win32 application** .

I tried pyinstaller, cx_freeze and even py2exe but got the same error. From the errors I understood that it's not importing PyQt4.QtGui and PyQt4.QtCore so i changed the of importing but got the same error and all Pyqt4, python 2.7 win x64 version so please help me out.


Solution

  • Yeah i got the solution , initially i was trying to create win application in linux using wine with python and qt4 as 64bit but when i tried the same thing in windows os using pyinstaller it created an exe file....(i still dont known the reason why)