[Buildbot-devel] OT: class.__dict__ not accessible in restricted mode

Almad bugs at almad.net
Mon Jan 18 13:01:03 UTC 2010


Hi,

when building on top of buildbot, I perform django admin discovery, which is 
causing this traceback:


File "/var/lib/python-support/python2.5/cthulhubot/commands/interface
.py" in <module>
  5. from buildbot.steps.shell import ShellCommand
File "/usr/lib/python2.5/site-packages/buildbot/steps/shell.py" in <module>
  5. from buildbot.process.buildstep import LoggingBuildStep, 
RemoteShellCommand
File "/usr/lib/python2.5/site-packages/buildbot/process/buildstep.py" in 
<module>
  4. from twisted.internet import reactor, defer, error
File "/usr/lib/python2.5/site-packages/twisted/internet/reactor.py" in 
<module>
  11. from twisted.internet import selectreactor
File "/usr/lib/python2.5/site-packages/twisted/internet/selectreactor.py" in 
<module>
  21. from twisted.internet import posixbase
File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py" in 
<module>
  25. from twisted.internet import tcp, udp
File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py" in <module>
  79. from twisted.internet import defer, base, address
File "/usr/lib/python2.5/site-packages/twisted/internet/base.py" in <module>
  29. from twisted.internet import main, error, abstract, defer, threads
File "/usr/lib/python2.5/site-packages/twisted/internet/abstract.py" in 
<module>
  20. class FileDescriptor(log.Logger, styles.Ephemeral, object):
File "/usr/lib/python2.5/site-packages/zope/interface/advice.py" in advise
  132.         return callback(newClass)
File "/usr/lib/python2.5/site-packages/zope/interface/declarations.py" in 
_implements_advice
  485.     classImplements(cls, *interfaces)
File "/usr/lib/python2.5/site-packages/zope/interface/declarations.py" in 
classImplements
  461.     spec = implementedBy(cls)
File "/usr/lib/python2.5/site-packages/zope/interface/declarations.py" in 
implementedByFallback
  355.         spec = Implements(*[implementedBy(c) for c in bases])
File "/usr/lib/python2.5/site-packages/zope/interface/declarations.py" in 
implementedByFallback
  301.         spec = cls.__dict__.get('__implemented__')

Exception Type: RuntimeError at /
Exception Value: class.__dict__ not accessible in restricted mode


I know I'm slightly off-topic here, but anyone has experience with this?

I experience it only in production, when using mod_wsgi, but even when set to 
single process and thread. Versions as in latest debian lenny.

Thanks for ideas,

Almad




More information about the devel mailing list