[Twisted-Python] problem with long-running threads

Clark C. Evans cce at clarkevans.com
Mon Feb 24 23:19:50 EST 2003


I've been getting the following traceback in my log files... any ideas?
I'm using a separate thread for a long-running-query...

Traceback (most recent call last):
  File "/usr/local/lib/python2.2/site-packages/twisted/internet/default.py",
  line 121, in mainLoop

    File "/usr/local/lib/python2.2/site-packages/twisted/internet/base.py",
    line 343, in runUntilCurrent

      File
      "/usr/local/lib/python2.2/site-packages/twisted/internet/defer.py",
      line 162, in callback

        File
	"/usr/local/lib/python2.2/site-packages/twisted/internet/defer.py",
	line 213, in _startRunCallbacks

	--- <exception caught here> ---
	  File
	  "/usr/local/lib/python2.2/site-packages/twisted/internet/defer.py",
	  line 227, in _runCallbacks

	    File "server.py", line 13, in bad
	        req.finish()
		  File
		  "/usr/local/lib/python2.2/site-packages/twisted/protocols/http.py",
		  line 559, in finish

		  exceptions.AttributeError: Request instance has no
		  attribute 'channel'







More information about the Twisted-Python mailing list