Description
Upgraded from Ubuntu maverick to ubuntu natty, which ships with python2.7 as default. When I load a page in MoinMoin raises an exception. I also applied the patch given at the download page, but this doesn't fix the problem. With python2.6 it works fine.
Component selection
- general
Details
Traceback (most recent call last):
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/support/werkzeug/serving.py", line 151, in run_wsgi
execute(app)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/support/werkzeug/serving.py", line 138, in execute
application_iter = app(environ, start_response)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/support/werkzeug/utils.py", line 248, in __call__
return self.app(environ, start_response)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/wsgiapp.py", line 282, in __call__
response = run(context)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/wsgiapp.py", line 88, in run
response = dispatch(request, context, action_name)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/wsgiapp.py", line 136, in dispatch
response = handle_action(context, pagename, action_name)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/wsgiapp.py", line 195, in handle_action
handler(context.page.page_name, context)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/action/__init__.py", line 268, in do_show
content_only=content_only,
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/Page.py", line 1198, in send_page
start_line=pi['lines'])
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/Page.py", line 1292, in send_page_content
self.execute(request, parser, code)
File "/home/patrick/extprogs/moin-1.9.3/MoinMoin/Page.py", line 1323, in execute
exec code
File "FrontPage", line 2, in <module>
TypeError: 'dict' object is not callableMoinMoin Version |
1.9.3 |
OS and Version |
Ubuntu Natty |
Python Version |
2.7.1+ |
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Run moin ... maint cleancache.
Discussion
Not a bug, just a little inconvenience. You are expected to run that cleancache for all your wikis when doing moin or python upgrades. In this case, it is because the bytecode for python 2.6 is not compatible with 2.7. moin uses bytecode for "compiled wiki pages".
Plan
- Priority:
- Assigned to:
- Status:
