Hello!
I inherited an app with python 2.7 and PyQt4.
If I convert it with pyinstaller 3.2.1, i need to
excludes=['PySide'],
in the Analysis function (found this on stackoverflow). Then the following
binaries are included:
BINARY c:\devtools\python\27-32\lib\site-packages\PyQt4\QtCore4.dll
QtCore4.dll
BINARY c:\devtools\python\27-32\lib\site-packages\PyQt4\QtGui4.dll
QtGui4.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PyQt4\libgcc_s_dw2-1.dll
libgcc_s_dw2-1.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PyQt4\mingwm10.dll mingwm10.dll
and the exe works.
Otherwise, pyinstaller includes only three of the above
BINARY c:\devtools\python\27-32\lib\site-packages\PyQt4\QtGui4.dll
QtGui4.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PyQt4\libgcc_s_dw2-1.dll
libgcc_s_dw2-1.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PyQt4\mingwm10.dll mingwm10.dll
but also these 4 of pySide:
BINARY
c:\devtools\python\27-32\lib\site-packages\PySide\QtCore4.dll QtCore4.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PySide\QtNetwork4.dll QtNetwork4.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PySide\pyside-python2.7.dll
pyside-python2.7.dll
BINARY
c:\devtools\python\27-32\lib\site-packages\PySide\shiboken-python2.7.dll
shiboken-python2.7.dll
into the binaries list of the Analysis result and the application gives an
alert box "Fatal error" "Failed to execute script <my main file>".
The QtCore imports all read like
from PyQt4 import QtGui, QtCore
or
from PyQt4.QtCore import QString, SIGNAL, Qt
Why does pyinstaller think it should include PySide's QtCore4 instead of
PyQt4's?
Mit freundlichen Grüßen
Dr. Hartmut Niemann
Siemens AG
MO MLT LM EN CCI SRD
Werner-von-Siemens-Str. 67
91052 Erlangen, Deutschland
Mobil: +49 173 5342327
mailto:[email protected]
www.siemens.com/ingenuityforlife<https://siemens.com/ingenuityforlife>
[www.siemens.com/ingenuityforlife]
Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme;
Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich,
Janina Kugel, Siegfried Russwurm, Ralf P. Thomas; Sitz der Gesellschaft: Berlin
und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300,
München, HRB 6684; WEEE-Reg.-Nr. DE 23691322
--
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 https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.