This worked for my application as well. Thanks a lot ! Abhishek. On Thursday, August 1, 2013 8:19:26 AM UTC-7, Abhishek Ranjan wrote:
> 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 ? > > I need to use version 2.1.0 because of a PIL rthook related fix which > went in, in that version (http://www.pyinstaller.org/ticket/651) > > Thanks, > Abhishek. > > -- 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.
