[Moin-user] Trying to run on Python 2.7

David lists at theflorys.org
Sun Mar 13 13:06:27 EDT 2011


I am running a local WiKi on my Win7 laptop.  It has  been working fine 
for several years through Windows, Python, and Moin upgrades.  Most 
recently I have tried to upgrade to Python 2.7 and I have problems.

My base configuration is a local Apache server running Apache/2.2.16 
(Win32), mod_wsgi/3.3, Python/2.7.1, PHP/5.3.4.  I have Moin 1.9.3 
installed.  When I upgraded to Python 2.7 I installed the patch to Moin 
1.9.3 (deleted a line from MoinMoin/support/werkzeug/templates.py).  My 
mod_wsgi is working fine.  My Apache server is working fine. Moin is not 
working.  Here is a set of lines from the Apache error log:

[Sat Mar 12 17:05:05 2011] [error] 2011-03-12 17:05:05,575 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module!
[Sat Mar 12 17:05:05 2011] [error] 2011-03-12 17:05:05,926 INFO MoinMoin.config.multiconfig:127 using wiki config: H:\\Moin\\pvtwiki\\wikiconfig.py
[Sat Mar 12 17:05:06 2011] [error] 2011-03-12 17:05:06,105 ERROR MoinMoin.wsgiapp:293 An exception has occurred [http://localhost:8080/mywiki/MyStartingPage].
[Sat Mar 12 17:05:06 2011] [error] Traceback (most recent call last):
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 282, in __call__
[Sat Mar 12 17:05:06 2011] [error]     response = run(context)
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 88, in run
[Sat Mar 12 17:05:06 2011] [error]     response = dispatch(request, context, action_name)
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 136, in dispatch
[Sat Mar 12 17:05:06 2011] [error]     response = handle_action(context, pagename, action_name)
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 195, in handle_action
[Sat Mar 12 17:05:06 2011] [error]     handler(context.page.page_name, context)
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\action\\__init__.py", line 268, in do_show
[Sat Mar 12 17:05:06 2011] [error]     content_only=content_only,
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\Page.py", line 1198, in send_page
[Sat Mar 12 17:05:06 2011] [error]     start_line=pi['lines'])
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\Page.py", line 1292, in send_page_content
[Sat Mar 12 17:05:06 2011] [error]     self.execute(request, parser, code)
[Sat Mar 12 17:05:06 2011] [error]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\Page.py", line 1323, in execute
[Sat Mar 12 17:05:06 2011] [error]     exec code
[Sat Mar 12 17:05:06 2011] [error]   File "MyStartingPage", line 2, in<module>
[Sat Mar 12 17:05:06 2011] [error] TypeError: 'dict' object is not callable
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1] mod_wsgi (pid=8408): Exception occurred processing WSGI script 'H:/Moin/pvtwiki/moin.wsgi'.
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\support\\werkzeug\\utils.py", line 248, in __call__
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     return self.app(environ, start_response)
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 282, in __call__
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     response = run(context)
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 88, in run
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     response = dispatch(request, context, action_name)
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 136, in dispatch
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     response = handle_action(context, pagename, action_name)
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\wsgiapp.py", line 195, in handle_action
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     handler(context.page.page_name, context)
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\action\\__init__.py", line 268, in do_show
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     content_only=content_only,
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\Page.py", line 1198, in send_page
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     start_line=pi['lines'])
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\Page.py", line 1292, in send_page_content
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     self.execute(request, parser, code)
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\MoinMoin\\Page.py", line 1323, in execute
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]     exec code
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1]   File "MyStartingPage", line 2, in<module>
[Sat Mar 12 17:05:06 2011] [error] [client 127.0.0.1] TypeError: 'dict' object is not callable

Any advice on how to fix the problem would be appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20110313/014bdb7c/attachment.html>


More information about the Moin-user mailing list