[Twisted-Python] twistd causing AssertionError, exiting abruptly

Alex Levy mesozoic at polynode.com
Wed Apr 9 16:22:49 EDT 2003

When I run 'twistd -nf web.tap', twistd spits out the following traceback
and exits.  I'm really not sure what this means; help?

This is a fresh CVS copy.

[-] Log opened.
[-] twistd 1.0.4alpha1 (/usr/bin/python 2.2.1) starting up
[-] license user: Nobody <>
[-] organization: No Organization
[-] reactor class: twisted.internet.default.SelectReactor
[-] Loading web.tap...
[-] Loaded.
[*web*] twisted.web.server.Site starting on 8888
[*web*] Starting factory <twisted.web.server.Site instance at 0x82aa28c>
[*web*] Traceback (most recent call last):
[*web*]   File "/home/mesozoic/dev/Twisted/bin/twistd", line 31, in ?
[*web*]     run()
[*web*]   File "/home/mesozoic/dev/Twisted/twisted/scripts/twistd.py", line 474, in run
[*web*]     runApp(config)
[*web*]   File "/home/mesozoic/dev/Twisted/twisted/scripts/twistd.py", line 390, in runApp
[*web*]     application.bindPorts()
[*web*]   File "/home/mesozoic/dev/Twisted/twisted/internet/app.py", line 742, in bindPorts
[*web*]     self._listenerDict[port, interface] = reactor.listenTCP(port, factory, backlog, interface)
[*web*]   File "/home/mesozoic/dev/Twisted/twisted/internet/default.py", line 244, in listenTCP
[*web*]     p.startListening()
[*web*]   File "/home/mesozoic/dev/Twisted/twisted/internet/tcp.py", line 417, in startListening
[*web*]     self.factory.doStart()
[*web*]   File "/home/mesozoic/dev/Twisted/twisted/internet/protocol.py", line 55, in doStart
[*web*]     self.startFactory()
[*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

Alex Levy
WWW: http://mesozoic.geecs.org

"Never let your sense of morals prevent you from doing what is right."
 -- Salvor Hardin, Isaac Asimov's _Foundation_

More information about the Twisted-Python mailing list