[Twisted-Python] reactor.run() or application.save()+run?

Mario Ruggier mario at ruggier.org
Thu Feb 27 15:11:05 MST 2003


> Mario Ruggier <mario at ruggier.org> writes:
>> when i call "twistd -f pargs-webapp.tap", I get the following error :
>>
>> Failed to load application: <twisted.persisted.styles.Ephemeral 
>> instance at
>> 0x3ad330> is not safe for unpickling
>>
>> If I do not call save() but just run(), the application runs 
>> correctly...
>
> It's probably related to this one:
>
>  http://twistedmatrix.com/documents/howto/faq#auto23
>
> In short, app.save() is storing an object of class 
> __main__.DynamicRequest,
> which cannot be loaded. You need to import that class from yourself to 
> get a
> globally-correct name

Yes indeed, it is exactly this. Importing the same module corrects the 
problem.
Thanks for the pointer!

> It would be nice if we could detect this sort of thing at .save() time 
> and
> emit a warning..

Yes, it would be a very good thing.

>  -Brian

Cheers, mario





More information about the Twisted-Python mailing list