[Twisted-Python] Question about Twistd and PYTHONPATH

Matthew Zhang matthew.reg at gmail.com
Wed Feb 20 01:44:53 EST 2008


I guess your Reporter class is in another module.
I ran into the same situation a few days ago and finally made it work like
this:

import sys
sys.path.append('.')

from task import Task

Matthew

On Feb 10, 2008 4:46 AM, Andrew Francis <andrewfr_ice at yahoo.com> wrote:

> Hello Folks:
>
> This is my first time using twistd. I have daemonized
> a server by creating a TAC file. When I execute the
> server (first I ran it out of its development
> directory),
>
> twistd -y server.tac
>
> I get:
>
> no module named Reporter (Reporter is a class)
>
> when I run a non-daemonized version of the same
> server, I have no problem.
>
> I checked my PYTHONPATH. It seems to be properly set.
> I tried setting the path using sys.path. No go.
>
> Is there embarassingly simple that I am missing? Is
> there something I should be overriding?
>
> Cheers,
> Andrew
>
>
>
>
>  ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080220/89546df4/attachment.htm 


More information about the Twisted-Python mailing list