[Grok-dev] Re: Upgrade problem "type object 'IRole' has no
attribute '__iro__'"
Sebastian Ware
sebastian at urbantalk.se
Fri May 30 02:57:45 EDT 2008
Added
zope.app.session
to
install_requires
more success, but now it looks as though the grok.container is having
problems. Any other versions to pin down? Or is it possible to just
upgrade all the objects? :)
Mvh Sebastian
30 maj 2008 kl. 08.32 skrev Philipp von Weitershausen:
> 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