[Moin-user] 'dict' object is not callable

Philip Colmer philip.colmer at linaro.org
Mon Feb 11 04:36:55 EST 2013


I'm trying to migrate an existing moinmoin wiki from one server to another.
I've taken a complete file copy of the original server and unpacked it into
a directory on the new server.

I've installed moinmoin into a different directory so that I can test and
check the installation of moinmoin. It is working as I expect it to.

If I soft-link to the data & underlay directories that have been unpacked
from the original server, I get an internal server error when I try to
browse the front page of the site:

[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198] mod_wsgi
(pid=3111): Exception occurred processing WSGI script
'/usr/share/moin/moin.wsgi'.
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198] Traceback (most
recent call last):
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 411, in __call__
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]     return
self.app(environ, start_response)
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 282, in
__call__
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]     response =
run(context)
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 88, in run
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]     response =
dispatch(request, context, action_name)
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 136, in
dispatch
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]     response =
handle_action(context, pagename, action_name)
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 195, in
handle_action
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]
handler(context.page.page_name, context)
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.py", line 268,
in do_show
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]
content_only=content_only,
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1198, in send_page
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]
start_line=pi['lines'])
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1292, in
send_page_content
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]
self.execute(request, parser, code)
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1323, in execute
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]     exec code
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198]   File
"FrontPage", line 2, in <module>
[Mon Feb 11 09:32:24 2013] [error] [client 86.161.238.198] TypeError:
'dict' object is not callable

I don't think it is the config file that is the problem because I've tried
using the "out of the box" config file and I'm getting the same problem.
Switching back to my test "data" and "underlay" folders gets me back to a
working server.

So, it looks like there is something about the folders from the original
server that are the problem. I've set the file permissions to match.

Any suggestions, please?

Many thanks.

Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20130211/ce6c4dc4/attachment.html>


More information about the Moin-user mailing list