ipython -twisted weird behavior
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Won't Fix
|
Medium
|
Brian Granger |
Bug Description
I was really excited to see that one could start a twisted reactor in ipython by just giving it the -twisted flag.
However, I am not even able to get the most basic functionality to work right.
iapetus:~ > ipython -twisted
Python 2.5.2 (r252:60911, Apr 21 2008, 11:29:18)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.3 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: 2+2
Warning: Timeout for mainloop thread exceeded
switching to nonthreaded mode (until mainloop wakes up again)
In [2]:
Then when I try to exit, it just hangs indefinitely until I hit ctrl+c:
In [2]: exit()
Do you really want to exit ([y]/n)? y
^CClosing threads... Done.
Closing threads...Traceback (most recent call last):
File "/opt/local/
self.
File "/opt/local/
reactorrun_
File "/opt/local/
self.mainLoop()
File "/opt/local/
self.
--- <exception caught here> ---
File "/opt/local/
call.
File "/opt/local/
tokill()
File "/opt/local/
"Can't stop reactor that isn't running.")
twisted.
mainLoopThreadD
mainloop ending....
I am on OS X 10.5.3 with python 2.5.2, twisted 8.1.0 and ipython-0.8.3.
Changed in ipython: | |
assignee: | nobody → ellisonbg |
Changed in ipython: | |
assignee: | ellisonbg → villemvainio |
importance: | Undecided → Medium |
This works on windows, at least. I will test with Ubuntu shortly.