Hello everybody,
after diving into Tkinter for a while I'm now willing to learn PyQt. Before spending a lot of time with it I tried to process a very simple script (displaying a plain window) with Pyinstaller. This because I absolutely need to share my app with different people which will not install any python or modules. However my resulting .exe file doesn't work. Can anyone help me?
Here's the python script
import PyQt4
import sys
from PyQt4 import QtGui
class HelloWindow(QtGui.QMainWindow):
def __init__(self, win_parent = None):
#Init the base class
QtGui.QMainWindow.__init__(self, win_parent)
app = QtGui.QApplication(sys.argv)
#The Main window
main_window = HelloWindow()
main_window.show()
# Enter the main loop
app.exec_()
here's my .spec file
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), '000.py'],
pathex=)
pyz = PYZ(a.pure)
exe = EXE( pyz,
a.scripts,
a.binaries,
name='000.exe',
debug=1,
strip=False,
upx=False,
console=1 )
here's finally the warning coming along with the .exe file
W: no module named posix (conditional import by os)
W: no module named org (top-level import by copy)
W: no module named posix (delayed, conditional import by iu)
W: no module named pwd (delayed, conditional import by posixpath)
W: no module named _emx_link (conditional import by os)
W: delayed __import__ hack detected at line 0 - encodings (C:\Python25\lib\encodings\__init__.pyc)
W: delayed eval hack detected at line 0 - os (C:\Python25\lib\os.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Python25\pyinstaller-1.3\iu.pyc)
W: delayed conditional exec statement detected at line 0 - iu (C:\Python25\pyinstaller-1.3\iu.pyc)
Thanks