[Grok-dev] Re: Upgrade problem "type object 'IRole' has no
attribute '__iro__'"
Sebastian Ware
sebastian at urbantalk.se
Tue May 27 18:08:28 EDT 2008
My bad! I am also adding another traceback below relating to trying to
open the root management screen.
2008-05-27T19:01:26 ERROR SiteError Error while reporting an error to
the Error Reporting utility
Traceback (most recent call last):
File "/Users/jhsware/groksandbox/eggs/tmpA7SqhR/
zope.app.publication-3.4.2-py2.4.egg/zope/app/publication/
zopepublication.py", line 225, in _logErrorWithErrorReportingUtility
File "/Users/jhsware/groksandbox/eggs/zope.component-3.4.0-
py2.4.egg/zope/component/_api.py", line 204, in getUtility
utility = queryUtility(interface, name, context=context)
File "/Users/jhsware/groksandbox/eggs/zope.component-3.4.0-
py2.4.egg/zope/component/_api.py", line 210, in queryUtility
return getSiteManager(context).queryUtility(interface, name,
default)
File "/Users/jhsware/groksandbox/eggs/zope.component-3.4.0-
py2.4.egg/zope/component/registry.py", line 132, in queryUtility
return self.utilities.lookup((), provided, name, default)
File "/Users/jhsware/groksandbox/eggs/tmpWdaYBd/ZODB3-3.8.0b2-py2.4-
macosx-10.3-i386.egg/ZODB/Connection.py", line 801, in setstate
File "/Users/jhsware/groksandbox/eggs/tmpWdaYBd/ZODB3-3.8.0b2-py2.4-
macosx-10.3-i386.egg/ZODB/Connection.py", line 859, in _setstate
File "/Users/jhsware/groksandbox/eggs/tmpWdaYBd/ZODB3-3.8.0b2-py2.4-
macosx-10.3-i386.egg/ZODB/serialize.py", line 605, in setGhostState
File "/Users/jhsware/groksandbox/eggs/tmp6y-t3B/
zope.app.component-3.4.0b3-py2.4.egg/zope/app/component/back35.py",
line 920, in __setstate__
File "/Users/jhsware/groksandbox/eggs/zope.component-3.4.0-
py2.4.egg/zope/component/persistentregistry.py", line 42, in
__setstate__
self._createLookup()
File "/Users/jhsware/groksandbox/eggs/tmpheqOMW/
zope.interface-3.4.0-py2.4-macosx-10.3-i386.egg/zope/interface/
adapter.py", line 80, in _createLookup
File "/Users/jhsware/groksandbox/eggs/tmpheqOMW/
zope.interface-3.4.0-py2.4-macosx-10.3-i386.egg/zope/interface/
adapter.py", line 389, in __init__
File "/Users/jhsware/groksandbox/eggs/tmpheqOMW/
zope.interface-3.4.0-py2.4-macosx-10.3-i386.egg/zope/interface/
adapter.py", line 426, in init_extendors
File "/Users/jhsware/groksandbox/eggs/tmpheqOMW/
zope.interface-3.4.0-py2.4-macosx-10.3-i386.egg/zope/interface/
adapter.py", line 430, in add_extendor
AttributeError: type object 'IRole' has no attribute '__iro__'
--------
2008-05-27T19:07:06 ERROR SiteError http://localhost:8080/applications
Traceback (most recent call last):
File "/Users/jhsware/groksandbox/eggs/tmpcxvxyR/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 133, in publish
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/publication.py", line 45, in callObject
File "/Users/jhsware/groksandbox/eggs/tmpA7SqhR/
zope.app.publication-3.4.2-py2.4.egg/zope/app/publication/
zopepublication.py", line 167, in callObject
File "/Users/jhsware/groksandbox/eggs/tmpcxvxyR/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 108, in mapply
- __traceback_info__: <grok.admin.view.Applications object at
0x3060c90>
File "/Users/jhsware/groksandbox/eggs/tmpcxvxyR/
zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/
publish.py", line 114, in debug_call
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/components.py", line 139, in __call__
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/components.py", line 143, in _render_template
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/components.py", line 336, in render
File "/Users/jhsware/groksandbox/eggs/tmpB4-K_W/
zope.pagetemplate-3.4.0a1-py2.4.egg/zope/pagetemplate/
pagetemplate.py", line 115, in pt_render
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 271, in __call__
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 891, in do_useMacro
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 855, in do_condition
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 745, in
do_insertStructure_tal
File "/Users/jhsware/groksandbox/eggs/tmpDwGF7d/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/tales.py", line 696, in evaluate
- /Users/jhsware/groksandbox/eggs/grok-0.12-py2.4.egg/grok/admin/
view_templates/grokadminmacros.pt
- Line 89, Column 10
- Expression: <PathExpr standard:u'context/@@messages'>
- Names:
{'args': (),
'context': <zope.app.folder.folder.Folder object at 0x2220af0>,
'default': <object object at 0x3a2550>,
'loop': {},
'nothing': None,
'options': {},
'repeat': {},
'request': <zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/applications
>,
'static': <grok.components.DirectoryResource object at
0x3060d30>,
'template': <grok.components.TrustedFilePageTemplate object at
0x2dd17f0>,
'view': <grok.admin.view.Applications object at 0x3060c90>}
File "/Users/jhsware/groksandbox/eggs/tmpDwGF7d/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/expressions.py", line 217, in __call__
File "/Users/jhsware/groksandbox/eggs/tmpDwGF7d/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/expressions.py", line 211, in _eval
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/components.py", line 139, in __call__
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/components.py", line 143, in _render_template
File "/Users/jhsware/groksandbox/eggs/tmpSWwOvD/grok-0.12-py2.4.egg/
grok/components.py", line 336, in render
File "/Users/jhsware/groksandbox/eggs/tmpB4-K_W/
zope.pagetemplate-3.4.0a1-py2.4.egg/zope/pagetemplate/
pagetemplate.py", line 115, in pt_render
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 271, in __call__
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret
File "/Users/jhsware/groksandbox/eggs/tmpGlE6aw/zope.tal-3.4.0b1-
py2.4.egg/zope/tal/talinterpreter.py", line 822, in do_loop_tal
File "/Users/jhsware/groksandbox/eggs/tmpDwGF7d/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/tales.py", line 685, in setRepeat
File "/Users/jhsware/groksandbox/eggs/tmpDwGF7d/zope.tales-3.4.0a1-
py2.4.egg/zope/tales/tales.py", line 110, in __init__
File "/Users/jhsware/groksandbox/eggs/tmp9gue2f/
z3c.flashmessage-1.0b2-py2.4.egg/z3c/flashmessage/receiver.py", line
23, in receive
File "/Users/jhsware/groksandbox/eggs/tmp9gue2f/
z3c.flashmessage-1.0b2-py2.4.egg/z3c/flashmessage/sources.py", line
38, in list
File "/Users/jhsware/groksandbox/eggs/tmp9gue2f/
z3c.flashmessage-1.0b2-py2.4.egg/z3c/flashmessage/sources.py", line
52, in _storage
File "/Users/jhsware/groksandbox/eggs/tmp6y-t3B/
zope.app.component-3.4.0b3-py2.4.egg/zope/app/component/hooks.py",
line 95, in adapter_hook
File "/Users/jhsware/groksandbox/eggs/zope.component-3.4.0-
py2.4.egg/zope/component/zcml.py", line 151, in factory
ob = original_factory(*args)
File "/Users/jhsware/groksandbox/eggs/tmpNctbgS/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/session.py", line
326, in __init__
File "/Users/jhsware/groksandbox/eggs/tmp6y-t3B/
zope.app.component-3.4.0b3-py2.4.egg/zope/app/component/hooks.py",
line 95, in adapter_hook
File "/Users/jhsware/groksandbox/eggs/zope.component-3.4.0-
py2.4.egg/zope/component/zcml.py", line 151, in factory
ob = original_factory(*args)
File "/Users/jhsware/groksandbox/eggs/tmpNctbgS/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/session.py", line
66, in __new__
File "/Users/jhsware/groksandbox/eggs/tmpNctbgS/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/http.py", line
120, in getClientId
File "/Users/jhsware/groksandbox/eggs/tmpNctbgS/
zope.app.session-3.4.0a1-py2.4.egg/zope/app/session/http.py", line
261, in setRequestId
AttributeError: 'CookieClientIdManager' object has no attribute
'cookieLifetime'
Mvh Sebastian
27 maj 2008 kl. 22.20 skrev Philipp von Weitershausen:
> Sebastian Ware wrote:
>> When upgrading a live grok-0.10 app to grok-0.12 I get the
>> following error:
>> AttributeError: type object 'IRole' has no attribute '__iro__'
>> I am guessing it has to do with the move of zope.securitypolicy,
>> but how do I resolve this?
>
> Full traceback please?
>
More information about the Grok-dev
mailing list