[Twisted-Python] twistd causing AssertionError, exiting abruptly

Tommi Virtanen tv at twistedmatrix.com
Thu Apr 10 03:03:14 EDT 2003

On Wed, Apr 09, 2003 at 04:22:49PM -0400, Alex Levy wrote:
> When I run 'twistd -nf web.tap', twistd spits out the following traceback
> and exits.  I'm really not sure what this means; help?

> [*web*]   File "/home/mesozoic/dev/Twisted/twisted/protocols/http.py", line 1009, in startFactory
> [*web*]     self.logFile = self._openLogFile(self.logPath)
> [*web*]   File "/home/mesozoic/dev/Twisted/twisted/web/server.py", line 407, in _openLogFile
> [*web*]     return logfile.LogFile(os.path.basename(path), os.path.dirname(path))
> [*web*]   File "/home/mesozoic/dev/Twisted/twisted/python/logfile.py", line 107, in __init__
> [*web*]     BaseLogFile.__init__(self, name, directory, defaultMode)
> [*web*]   File "/home/mesozoic/dev/Twisted/twisted/python/logfile.py", line 38, in __init__
> [*web*]     assert os.path.isdir(self.directory)
> [*web*] AssertionError

	The path you are passing to mktap web for HTTP request log is somehow
	broken. The dirname of the path does not seem to refer to an
	existing directory.

:(){ :|:&};:

More information about the Twisted-Python mailing list