reactor already installed

420 views
Skip to first unread message

Myrik Lord

unread,
Apr 18, 2016, 1:35:04 PM4/18/16
to Kivy users support
I had error "reactor already installed" after packing mine app with pyinstaller.
Is any way for using twisted with kivy and pyinstaller?

Traceback (most recent call last):
   File "<string>", line 4, in <module>
   File "c:\python27\lib\site-packages\kivy\support.py", line 176, in install_twisted_reactor
     _threadedselect.install()
   File "C:\Python27\lib\site-packages\twisted\internet\_threadedselect.py", line 354, in install
     installReactor(reactor)
   File "C:\Python27\lib\site-packages\twisted\internet\main.py", line 32, in installReactor
     raise error.ReactorAlreadyInstalledError("reactor already installed")
 twisted.internet.error.ReactorAlreadyInstalledError: reactor already installed

Myrik Lord

unread,
Apr 18, 2016, 3:13:46 PM4/18/16
to Kivy users support
import sys
if 'twisted.internet.reactor' in sys.modules:
del sys.modules['twisted.internet.reactor']
Reply all
Reply to author
Forward
0 new messages