[Twisted-Python] 9.0.0 question
glyph at twistedmatrix.com
Wed Jan 20 22:43:37 EST 2010
On Jan 20, 2010, at 3:20 PM, Mikhail Terekhov wrote:
> 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:
I don't see the behavior you describe, but I do see this traceback on trunk with every 3rd run or so of that example - maybe the example is buggy?
doc/names/examples$ python gethostbyname.py twistedmatrix.com
twisted/names/dns.py:1670: DeprecationWarning: Please only pass IPs to write(), not hostnames
Traceback (most recent call last):
File "twisted/internet/udp.py", line 121, in doRead
File "twisted/names/dns.py", line 1700, in datagramReceived
File "twisted/internet/defer.py", line 239, in callback
File "twisted/internet/defer.py", line 308, in _startRunCallbacks
--- <exception caught here> ---
File "twisted/internet/defer.py", line 324, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "twisted/names/common.py", line 239, in <lambda>
).addBoth(lambda passthrough: (r.protocol.transport.stopListening(), passthrough))
exceptions.AttributeError: 'NoneType' object has no attribute 'stopListening'
Can you provide a simpler, more streamlined example of the problem you're describing?
More information about the Twisted-Python