Description

Following upgrade from 1.7.2 to 1.8.0, and again following upgrade from 1.8.0 to 1.8.1, I encountered the attached error and traceback. In the first case, following the 1.7.2 to 1.8.0 upgrade, the error only occurred once and even

moin ... maint cleancache

would not cause the error to recur. However, following the 1.8.0 to 1.8.1 upgrade, the error was persistent and can be reproduced.

Following upgrade from 1.8.1 to 1.8.2 the situation is even worse. See moin.error.txt for details.

Steps to reproduce

  1. Remove avoidance patch
  2. Run moin ... maint cleancache
  3. Visit wiki FrontPage.

Example

Component selection

Exception occurs in i18n/init.py in the getText() method.

Details

traceback.html

MoinMoin Version

1.8.1

OS and Version

CentOS 5

Python Version

2.4.3

Server Setup

Stand alone internet

Server Details

Apache 2.2.3

Language you are using the wiki in (set in the browser/UserPreferences)

en en-US en-GB

Workaround

Apply the following patch:

--- MoinMoin/i18n/__init__.py   2008-09-27 06:27:44.000000000 -0700
+++ MoinMoin/i18n/__init__.py   2008-12-27 09:22:29.000000000 -0800
@@ -278,7 +278,10 @@
                 translation.formatted[key] = translated # remember it
     else:
         try:
-            language = languages[lang]['x-language-in-english']
+            if languages:
+                language = languages[lang]['x-language-in-english']
+            else:
+                language = lang
             dictpagename = "%sDict" % language.replace(' ', '')
             dicts = request.dicts
             if dicts.has_dict(dictpagename):

Discussion

My upgrade process is very similar. The only difference is I don't rm cache/*; I run Run moin ... maint cleancache - Mark Sapiro

Update - 2009/03/01: I tried again first doing "rm -rf cache/*" and was then able to access the wiki with no exceptions. Thus, it seems that the real issue is the existing cache and "moin ... maint cleancache" is insufficient to deal with it. - Mark Sapiro

sounds like a duplication of MoinMoinBugs/i18n_unsubscriptable_object

Yes, it does seem that MoinMoinBugs/i18n_unsubscriptable_object reports the same problem as my original report, but the issue I have with 1.8.2 goes beyond that. See moin.error.txt.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.8TypeError_in_i18n.__init__after_upgrade (last edited 2009-09-20 18:34:00 by ThomasWaldmann)