[Twisted-Python] Problem creating working .tap file
Uwe C. Schroeder
uwe at oss4u.com
Fri May 16 17:17:41 EDT 2003
On Friday 16 May 2003 01:52 pm, Brian Warner wrote:
> > something strange shows up here. I try to create a TAP from a pb
> > application. The tap is created nicely, but I get an error when starting
> > it:
> > Failed to load application: <twisted.persisted.styles.Ephemeral instance
> > at 0x82450a4> is not safe for unpickling
> This is a pretty common gotcha. The class name of your Echoer() object is
> stored in the tap file, and used at startup time to import the necessary
> code. However, in your program, the class name is really __main__.Echoer.
> You need to to a 'from myfile import Echoer' in the block where you perform
> the listenTCP.
> More details in <http://twistedmatrix.com/documents/howto/faq#auto15>,
> "twistd won't load my .tap file!". I've added a note about the Ephemeral
> message to make it easier to search for.
Good idea to add the reference. I was browsing the FAQ for this since I
already thought it might be one.
Thanks, that does the trick.
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
More information about the Twisted-Python