[Moin-user] 'NoneType' object is unsubscriptable after 1.6 to 1.8 upgrade

Chris Paulson-Ellis chris at edesix.com
Mon Dec 21 16:58:16 EST 2009


I just upgraded from 1.6 to 1.8 (fedora 10 to fedora 11 package 
moin-1.8.5-1.fc11) and applied the usual upgrade steps (replacing the 
underlay, updating moin.wsgi and wikiconfig.py, etc.).

Now I'm getting a Python exception on any page access:

Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/MoinMoin/request/__init__.py", 
line 1311, in run
     handler(self.page.page_name, self)
   File "/usr/lib/python2.6/site-packages/MoinMoin/action/__init__.py", 
line 253, in do_show
     content_only=content_only,
   File "/usr/lib/python2.6/site-packages/MoinMoin/Page.py", line 1173, 
in send_page
     html_head=html_head,
   File "/usr/lib/python2.6/site-packages/MoinMoin/theme/__init__.py", 
line 1578, in send_title
     page_front_page = wikiutil.getFrontPage(request).page_name
   File "/usr/lib/python2.6/site-packages/MoinMoin/wikiutil.py", line 
787, in getFrontPage
     return getLocalizedPage(request, request.cfg.page_front_page)
   File "/usr/lib/python2.6/site-packages/MoinMoin/wikiutil.py", line 
756, in getLocalizedPage
     i18n_name = request.getText(pagename)
   File "/usr/lib/python2.6/site-packages/MoinMoin/request/__init__.py", 
line 248, in <lambda>
     self.getText = lambda text, i18n=self.i18n, request=self, 
lang=self.lang, **kv: i18n.getText(text, request, lang, **kv)
   File "/usr/lib/python2.6/site-packages/MoinMoin/i18n/__init__.py", 
line 285, in getText
     language = languages[lang]['x-language-in-english']
TypeError: 'NoneType' object is unsubscriptable


I've attached the full error page.

Can anyone who knows the code make sense of this?
Thanks,
Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20091221/37d3c0e6/attachment.html>


More information about the Moin-user mailing list