This post just documents my experience so others may find it.  (Another 
post in this forum with similar symptoms for PyQt4 seems never to have been 
answered.)

Bottom line: something was fixed after v2.1 of PyInstaller, so use the 
development version of PyInstaller.

Environment:
Ubuntu 13.04
Python2.7.4
Qt5.0.2
PyQt5
PyInstaller2.1

I built with debug using: 
~/Downloads/PyInstaller-2.1$ python pyinstaller.py --onefile --debug 
~/Drop*/Proj*/trials/trials/helloworld.py

Then executing the resulting helloworld executable yields:

...
LOADER: Running scripts
Traceback (most recent call last):
  File "<string>", line 39, in <module>
ImportError: No module named QtCore
LOADER: RC: -1 from pyi_rth_qt5plugins
...

(Which means: PyInstaller started Python on the pyi_rth_qt5plugins.py 
script, a Python script that executes before your packaged app.  It failed 
at 'from PyQt5.QtCore import QCoreApplication')

(The TOC seems to be correct showing that QtCore is in the archive.)

Again, today I resolved this by installing the latest version from the dev  
branch of Pyinstaller (pyinstaller-pyinstaller-9710947).






-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to