Thanks Martin. I'm using import qt4reactor
and then use qt4reactor.install() This is run when the code is run. Is that a problem? Still stuck on "listenTCP" not found, which means the reactor is having trouble, like you said. On Monday, January 14, 2013 7:38:00 AM UTC-5, Martin Z wrote: > > Ram píše v Ne 13. 01. 2013 v 21:10 -0800: > > > > Two problems: > > > > 1. When I checked out git://github.com/matysek/pyinstaller.git , I > > dont see a support directory in there anymore. > > I did some other changes moved some files to another directories. > > ./support/rthooks/pyi_rth_twisted.py is now in > > ./PyInstaller/loader/rthooks/pyi_rth_twisted.py > > > 2. In my previous version that I had saved, when I removed the > > file ./support/rthooks/pyi_rth_twisted.py, I got a listenTCP Error > > even in the program that used to work without removing the file. > > - The file pyi_rth_twisted installs the default reactor before your code > imports anything from 'twisted' module. > - this hook does not work for you since you use qtreactor and not the > default reactor from twisted. > - you have to run the code that installs proper > 'twisted.internet.reactor' before any other code. > > You will have try to find proper code to initialize qtreactor. > > > On Sunday, January 13, 2013 7:15:00 AM UTC-5, Martin Z wrote: > > I was thinking about a new wiki recipe. Thanks for reminder. > > > > Hartmut Goebel píše v So 12. 01. 2013 v 11:50 +0100: > > > Am 12.01.2013 11:00, schrieb Martin Zibricky: > > > > and at the top of your main script run code like > > > > > > > > from twisted.internet import protocol > > > > import qtreactor > > > > app = QApplication([]) > > > > qtreactor.install(app) > > > > > > This would by a good case for a custom runtime-hook, we > > could provide, > > > couldn't we? > > > And for a wiki-entry describing this. > > > > > > @Ram: Would be great if you'd submit both a runtime-hook and > > a > > > wiki-entry :-) > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "PyInstaller" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/pyinstaller/-/6KRcRD2cZh0J. > > To post to this group, send email to > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to pyinstaller > > [email protected] <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/pyinstaller?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyinstaller/-/6htDRCpyKCYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
