[Grok-dev] Re: Upgrade problem "type object 'IRole' has no
attribute '__iro__'"
Philipp von Weitershausen
philipp at weitershausen.de
Fri May 30 02:32:27 EDT 2008
On 30 May 2008, at 08:26 , Sebastian Ware wrote:
> Here comes some more about the object.
>
> AttributeError: type object 'IRole' has no attribute '__iro__'
> exceptions.AttributeError:
> type object 'IRole' has no attribute '__iro__'
> > /Users/jhsware/groksandbox/eggs/zope.interface-3.4.0-py2.4-
> macosx-10.3-i386.egg/zope/interface/adapter.py(431)add_extendor()
> -> for i in provided.__iro__:
> (Pdb) provided.__module__
> 'zope.app.securitypolicy.interfaces'
> (Pdb) provided
> <class 'zope.app.securitypolicy.interfaces.IRole'>
> (Pdb) dir(provided)
> ['__Broken_initargs__', '__Broken_state__', '__class__',
> '__delattr__', '__dict__', '__doc__', '__getattribute__',
> '__hash__', '__implemented__', '__init__', '__module__', '__name__',
> '__new__', '__providedBy__', '__provides__', '__reduce__',
> '__reduce_ex__', '__repr__', '__setattr__', '__setstate__',
> '__str__', '__weakref__']
> (Pdb)
There we go. It's substituting IRole for the Broken class.
Have you tried yet adding zope.app.securitypolicy and zope.app.session
to your setup.py's install_requires? Then rerun bin/buildout and try
again.
More information about the Grok-dev
mailing list