Hi,
I have been using Pyinstaller to package an application which uses twisted as well as Qt. Upto version 2.0.0 the installer has been getting generated fine, but recently I updated the pyinstaller with the latest on github - 2.1.0 and now the application doesn't start. I noticed that it fails at the point where qt4reactor.install is called. I tried it on a small snippet of code -
test.py
from twisted.internet import protocol
from PyQt4.QtGui import QApplication
import qt4reactor
app = QApplication([])
qt4reactor.install()
print "Qt4 reactor installed"
and used the following command to generate the installer -
pyinstaller pyinstaller.py --onedir test.py
With version 2.0.0 the executable works fine, but with the new pyinstaller (2.1.0), I see this error -
build\pyinstaller\test>.\dist\test\test.exe
win32install 1
win32install 2
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "C:\Users\user_3\blib-rel\blib\build\pyinstaller\test\build\test\out00-PY
Z.pyz\qt4reactor", line 349, in win32install
File "C:\Users\user_3\blib-rel\blib\build\pyinstaller\test\build\test\out00-PY
Z.pyz\twisted.internet.main", line 32, in installReactor
twisted.internet.error.ReactorAlreadyInstalledError: reactor already installed
^C
C:\Users\user_3\blib-rel\blib\build\pyinstaller\test>python ..\pyinstaller.py --
onedir test.py
Is this a known issue ? Is there a work around for this ?
Thanks,
Abhishek.