[Twisted-Python] 9.0.0 question

Mikhail Terekhov termim at gmail.com
Wed Jan 20 15:20:32 EST 2010


I've switched recently from 8.2 to 9.0 and noticed that some of my
client scripts
hang in reactor.stop() on exit sometimes. That never happened before. For
example if I run the gethostbyname.py from the twisted-names examples directory
it prints the correct result and hangs forever until I press Cntrl-C.
Then it prints the
following traceback:

terekhov at linux:/home/terekhov/python/twisted/9.0/Twisted-9.0.0/doc/names/examples
>python gethostbyname.py localhost
^CUnhandled error in Deferred:
Traceback (most recent call last):
  File "gethostbyname.py", line 19, in <module>
    d.addCallbacks(gotResult, gotFailure)
  File "/usr/lib64/python2.5/site-packages/twisted/internet/defer.py",
line 181, in addCallbacks
--- <exception caught here> ---
  File "/usr/lib64/python2.5/site-packages/twisted/internet/defer.py",
line 323, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "gethostbyname.py", line 12, in gotResult
  File "/usr/lib64/python2.5/site-packages/twisted/internet/base.py",
line 553, in stop
    "Can't stop reactor that isn't running.")
twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running.
terekhov at linux:/home/terekhov/python/twisted/9.0/Twisted-9.0.0/doc/names/examples

At the same time echo client/server example from the twisted core
works as expected.
Any hint would be appreciated.
BTW I use SuSE 11.0  on x86_64 with python 2.5.2

Mikhail Terekhov

More information about the Twisted-Python mailing list