[Twisted-Python] could plugin cache get currupted?

Gabriel Rossetti mailing_lists at evotex.ch
Thu Mar 27 14:50:34 EDT 2008

On 04:30 pm, mailing_lists at evotex.ch 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
glyph at divmod.com wrote:
> This traceback is tantalizingly interesting, but I don't know what 
> might have caused the error.
> It might not mean that your plugin cache is "corrupt", per se, but 
> that you've changed the names of some things in your code.  I'm not 
> sure why it hasn't gotten regenerated in the meanwhile.
> Can you come up with an example program which will even semi-reliably 
> reproduce this error in a clean environment?  If not, is your code 
> publicly available? 

I thought it gets corrupt because I didn't change or move any of the 
plugin code. I've had this error happen 3 or 4 times today, out of maybe 
20 runs, so it's hard to reproduce. I'll try to come up with an example 
that reproduces this, as I can't give out the code yet.


More information about the Twisted-Python mailing list