Although the original thread is 6 years old, this problem with the twisted 
hook persists.
Monkey-patching the hook works (comment out the content of the hook), but 
that
is obviously undesirable.

Is there any new thinking on a solution?

On Thursday, August 1, 2013 at 11:19:26 AM UTC-4 [email protected] 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/2ac9af2b-b2bc-4ec6-800e-c94660ec3f9fn%40googlegroups.com.

Reply via email to