[Twisted-Python] could plugin cache get currupted?
Gabriel Rossetti
mailing_lists at evotex.ch
Thu Mar 27 12:46:59 EDT 2008
Gabriel Rossetti wrote:
> Hello,
>
> I coded a program that uses Twisted's plugin system. I have noticed
> that if I interrupt the application using Ctrl+C (SIGINT) that when I
> run it next time I get this :
>
> File "/usr/lib/python2.5/site-packages/twisted/plugin.py", line 227,
> in getPlugins
> allDropins = getCache(package)
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-packages/twisted/plugin.py", line 178,
> in getCache
> provider = namedAny(module.__name__ + '.' + moduleName)
> File "/usr/lib/python2.5/site-packages/twisted/python/reflect.py",
> line 375, in namedAny
> obj = getattr(obj, n)
> exceptions.AttributeError: 'module' object has no attribute 'SendFile'
>
> Could this mean that the plugin cache is corrupt? If so, How can I
> keep it from getting corrupted (is there a safe way of closing it)?
>
> Thanks,
> Gabriel
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
BTW, this only happens sometimes, not every time I kill the app.
Gabriel
More information about the Twisted-Python
mailing list