Hi,

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:

terek...@linux:/home/terekhov/python/twisted/9.0/Twisted-9.0.0/doc/names/examples
>python gethostbyname.py localhost
127.0.0.1
^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
    self._runCallbacks()
--- <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
    reactor.stop()
  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.
terek...@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

Regards,
-- 
Mikhail Terekhov

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to