Springe zum Hauptinhalt

Write error with twisted plugin cache

I'm just toy­ing around with some Py­thon pro­gram which uses twis­ted and twis­ted plug­-­ins. I hot er­rors sin­ce twis­ted wants to wri­te a ca­che file in­to /us­r/­lib/­py­thon2.6/­si­te­-­packa­ge­s/, which a nor­mal user is not al­lo­wed to do. So­lu­ti­on is sim­ple, though:

If twis­ted is not in­stal­led pro­per­ly by you dis­tri­bu­ti­o­n, you will get er­rors li­ke

exceptions.IOError: [Errno 13] Permission denied: '/usr/lib/python2.6/site-packages/twisted/plugins/dropin.cache.new'

In this case you need to (re­-) build the twis­ted plu­g­in ca­che by run­ning as root:

python -c 'import twisted.plugin as P; list(P.getPlugins(P.IPlugin))'
Portrait von Hartmut Goebel

Hartmut Goebel

Diplom-Informatiker, CISSP, CSSLP, ISO 27001 Lead Implementer

Haben Sie noch Fragen?
Anruf oder Mail genügt:
  +49 871 6606-318
  +49 175 29 78 072