[Grok-dev] Re: Upgrade problem "type object 'IRole' has no
attribute '__iro__'" (Partial solution)
Sebastian Ware
sebastian at urbantalk.se
Fri May 30 02:49:02 EDT 2008
Adding
[versions]
zope.app.session = 3.4.2
to buildout.cfg AND
install_requires=['setuptools',
'grok',
'zope.app.session==3.4.2'
to setup.py made it possible to use the application management view
again and also to login to my application.
I am still getting the IRole.__iro__ attribute error when trying to
access my other views. I have tried with zope.app.session==3.5.1 but
to no avail.
Mvh Sebastian
29 maj 2008 kl. 18.25 skrev Martijn Faassen:
> Hi there,
>
> Philipp von Weitershausen wrote:
> [snip]
>>> 2008-05-27T19:07:06 ERROR SiteError http://localhost:8080/applications
>>> Traceback (most recent call last):
>>> ...
>>> AttributeError: 'CookieClientIdManager' object has no attribute
>>> 'cookieLifetime'
>> CookieClientIdManager's cookieLifeTime attribute is actually a
>> class attribute. So as with IRole, it seems the ZODB isn't finding
>> the right class when unpickling.
>> What happens when you add zope.app.session and
>> zope.app.securitypolicy as explicit dependencies to your application?
>
> I've seen this one before. It has something to do with the versions
> of zope.app.session and such that were in use.
>
> Uli analyzed this back then:
>
> http://mail.zope.org/pipermail/grok-dev/2008-February/003925.html
>
> This has something you might try:
>
> http://mail.zope.org/pipermail/grok-dev/2008-February/003939.html
>
> Regards,
>
> Martijn
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list