Attachment 'moin.error.txt'

Download

   1 I upgraded Moin 1.8.1 to 1.8.2. My standard logging config is copied from moin/config/logging/logfile_debug_auth.
   2 
   3 Here is the log entry from my first attempt to access a MoinMoin page after the upgrade.
   4 
   5 2009-02-24 19:26:21,310 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
   6 2009-02-24 19:26:21,525 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.py
   7 2009-02-24 19:26:24,912 MoinMoin.session DEBUG got cookie with session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t'
   8 2009-02-24 19:26:24,912 MoinMoin.session DEBUG starting session (reusing session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t')
   9 2009-02-24 19:26:24,913 MoinMoin.session DEBUG loaded session data from cache entry: {'user.id': '1084643414.22.14983', 'expires': 1235577166.7941289, 'user.auth_attribs': (), 'user.auth_method': 'moin', 'trail': [u'RecentChanges', u'CookieDough', u'BadContent']}
  10 2009-02-24 19:26:24,914 MoinMoin.session DEBUG session started for user <MoinMoin.user.User at 0x841bacc name:u'MarkSapiro' valid:1>
  11 2009-02-24 19:26:24,915 MoinMoin.session DEBUG storing 'user.id':'1084643414.22.14983' item into session cache entry
  12 2009-02-24 19:26:24,916 MoinMoin.session DEBUG storing 'user.auth_method':'moin' item into session cache entry
  13 2009-02-24 19:26:24,916 MoinMoin.session DEBUG storing 'user.auth_attribs':() item into session cache entry
  14 2009-02-24 19:26:24,920 MoinMoin.session DEBUG setting cookie with session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t', expiry 1235575584.9175241
  15 2009-02-24 19:26:24,920 MoinMoin.session DEBUG after auth: storing valid user into session: u'MarkSapiro'
  16 2009-02-24 19:26:25,068 MoinMoin.failure ERROR An exception occurred, URI was "/gpc/RecentChanges".
  17 Traceback (most recent call last):
  18   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1311, in run
  19     handler(self.page.page_name, self)
  20   File "/usr/lib/python2.4/site-packages/MoinMoin/action/__init__.py", line 253, in do_show
  21     content_only=content_only,
  22   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1025, in send_page
  23     pi = self.pi
  24   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 252, in get_pi
  25     self.__pi = self.parse_processing_instructions()
  26   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 916, in parse_processing_instructions
  27     if args in i18n.wikiLanguages():
  28 TypeError: iterable argument required
  29 2009-02-24 19:26:25,077 MoinMoin.failure ERROR cgitb raised this exception
  30 Traceback (most recent call last):
  31   File "/usr/lib/python2.4/site-packages/MoinMoin/failure.py", line 176, in handle
  32     handler.handle(savedError)
  33   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 576, in handle
  34     doc = view.format(formatter, self.context)
  35   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 354, in format
  36     return formatter.section(self.formatContent(), {'class': 'cgitb'})
  37   File "/usr/lib/python2.4/site-packages/MoinMoin/failure.py", line 38, in formatContent
  38     content = (
  39   File "/usr/lib/python2.4/site-packages/MoinMoin/failure.py", line 99, in formatDebugInfo
  40     info = [self.debugInfoHideScript(),
  41   File "/usr/lib/python2.4/site-packages/MoinMoin/failure.py", line 113, in formatTraceback
  42     return self.formatAllTracebacks(self.formatOneTraceback)
  43   File "/usr/lib/python2.4/site-packages/MoinMoin/failure.py", line 125, in formatAllTracebacks
  44     tracebacks.append(formatFuction((ttype, tvalue, tb)))
  45   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 432, in formatOneTraceback
  46     output = [self.formatter.subTitle('Traceback'),
  47   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 445, in tracebackFrames
  48     frames.append(frame.format(self.formatter))
  49   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 201, in format
  50     vars, highlight = self.scan()
  51   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 290, in scan
  52     vars = self.scanVariables(reader)
  53   File "/usr/lib/python2.4/site-packages/MoinMoin/support/cgitb.py", line 305, in scanVariables
  54     value = getattr(parent, token, __UNDEF__)
  55   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 252, in get_pi
  56     self.__pi = self.parse_processing_instructions()
  57   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 916, in parse_processing_instructions
  58     if args in i18n.wikiLanguages():
  59 TypeError: iterable argument required
  60 
  61 I then looked at a diff between the 1.8.1 i18n/__init__.py and the 1.8.2 version and saw that in two places
  62 
  63         meta_cache = caching.CacheEntry(request, 'i18n', 'meta', scope='farm', use_pickle=True)
  64 
  65 was changed to
  66 
  67         meta_cache = caching.CacheEntry(request, 'i18n', 'meta', scope='wiki', use_pickle=True)
  68 
  69 I run a single wiki with no multiple configs. A bit more investigation led me to try adding first
  70 
  71     siteid = 'grizz.org'
  72 
  73 and later
  74 
  75     siteid = '__common__'
  76 
  77 in the Config class in my /var/www/grizz/moin/gpc/wikiconfig.py file.
  78 
  79 I have also tried putting
  80 
  81     properties = {'siteid': '__common__'}
  82 
  83 within the Config class in the cgi that runs MoinMoin.
  84 
  85 All of these change the exception to the same one I got with 1.8.1 as follows:
  86 
  87 2009-02-24 20:24:32,133 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
  88 2009-02-24 20:24:32,355 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.py
  89 2009-02-24 20:24:35,841 MoinMoin.session DEBUG got cookie with session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t'
  90 2009-02-24 20:24:35,841 MoinMoin.session DEBUG starting session (reusing session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t')
  91 2009-02-24 20:24:35,842 MoinMoin.session DEBUG loaded session data from cache entry: {'user.id': '1084643414.22.14983', 'expires': 1235581519.517395, 'user.auth_attribs': (), 'user.auth_method': 'moin', 'trail': [u'CookieDough', u'BadContent', u'RecentChanges', u'MarkSapiro', u'ModsToThisWiki']}
  92 2009-02-24 20:24:35,844 MoinMoin.session DEBUG session started for user <MoinMoin.user.User at 0x9d17a4c name:u'MarkSapiro' valid:1>
  93 2009-02-24 20:24:35,844 MoinMoin.session DEBUG storing 'user.id':'1084643414.22.14983' item into session cache entry
  94 2009-02-24 20:24:35,845 MoinMoin.session DEBUG storing 'user.auth_method':'moin' item into session cache entry
  95 2009-02-24 20:24:35,846 MoinMoin.session DEBUG storing 'user.auth_attribs':() item into session cache entry
  96 2009-02-24 20:24:35,849 MoinMoin.session DEBUG setting cookie with session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t', expiry 1235579075.8467441
  97 2009-02-24 20:24:35,850 MoinMoin.session DEBUG after auth: storing valid user into session: u'MarkSapiro'
  98 2009-02-24 20:24:35,873 MoinMoin.session DEBUG storing 'trail':[u'BadContent', u'RecentChanges', u'MarkSapiro', u'ModsToThisWiki', u'FrontPage'] item into session cache entry
  99 2009-02-24 20:24:35,946 MoinMoin.failure ERROR An exception occurred, URI was "/gpc/FrontPage".
 100 Traceback (most recent call last):
 101   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1311, in run
 102     handler(self.page.page_name, self)
 103   File "/usr/lib/python2.4/site-packages/MoinMoin/action/__init__.py", line 253, in do_show
 104     content_only=content_only,
 105   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1173, in send_page
 106     html_head=html_head,
 107   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1578, in send_title
 108     page_front_page = wikiutil.getFrontPage(request).page_name
 109   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 787, in getFrontPage
 110     return getLocalizedPage(request, request.cfg.page_front_page)
 111   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 756, in getLocalizedPage
 112     i18n_name = request.getText(pagename)
 113   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 248, in <lambda>
 114     self.getText = lambda text, i18n=self.i18n, request=self, lang=self.lang, **kv: i18n.getText(text, request, lang, **kv)
 115   File "/usr/lib/python2.4/site-packages/MoinMoin/i18n/__init__.py", line 285, in getText
 116     language = languages[lang]['x-language-in-english']
 117 TypeError: unsubscriptable object
 118 
 119 So I applied the same patch I used with 1.8.1, but this time, I got another exception:
 120 
 121 2009-02-24 20:28:09,746 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
 122 2009-02-24 20:28:09,968 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.pyc
 123 2009-02-24 20:28:13,461 MoinMoin.session DEBUG got cookie with session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t'
 124 2009-02-24 20:28:13,462 MoinMoin.session DEBUG starting session (reusing session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t')
 125 2009-02-24 20:28:13,462 MoinMoin.session DEBUG loaded session data from cache entry: {'user.id': '1084643414.22.14983', 'expires': 1235581519.517395, 'user.auth_attribs': (), 'user.auth_method': 'moin', 'trail': [u'BadContent', u'RecentChanges', u'MarkSapiro', u'ModsToThisWiki', u'FrontPage']}
 126 2009-02-24 20:28:13,464 MoinMoin.session DEBUG session started for user <MoinMoin.user.User at 0x8311a4c name:u'MarkSapiro' valid:1>
 127 2009-02-24 20:28:13,465 MoinMoin.session DEBUG storing 'user.id':'1084643414.22.14983' item into session cache entry
 128 2009-02-24 20:28:13,465 MoinMoin.session DEBUG storing 'user.auth_method':'moin' item into session cache entry
 129 2009-02-24 20:28:13,466 MoinMoin.session DEBUG storing 'user.auth_attribs':() item into session cache entry
 130 2009-02-24 20:28:13,470 MoinMoin.session DEBUG setting cookie with session_name 'ue_9abfyhvhvy8fcrzohw9nql7__u61t', expiry 1235579293.4673879
 131 2009-02-24 20:28:13,470 MoinMoin.session DEBUG after auth: storing valid user into session: u'MarkSapiro'
 132 2009-02-24 20:28:13,566 MoinMoin.failure ERROR An exception occurred, URI was "/gpc/FrontPage".
 133 Traceback (most recent call last):
 134   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1311, in run
 135     handler(self.page.page_name, self)
 136   File "/usr/lib/python2.4/site-packages/MoinMoin/action/__init__.py", line 253, in do_show
 137     content_only=content_only,
 138   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1173, in send_page
 139     html_head=html_head,
 140   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1715, in send_title
 141     bodyattr.append(' %s' % self.ui_lang_attr())
 142   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1520, in ui_lang_attr
 143     return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang))
 144   File "/usr/lib/python2.4/site-packages/MoinMoin/i18n/__init__.py", line 238, in getDirection
 145     return languages[lang]['x-direction']
 146 TypeError: unsubscriptable object
 147 
 148 At this point, I gave up and installed my patched i18n/__init__.py and everything seemed to work fine.
 149 
 150 In an attempt to debug this further, I enabled full DEBUG logging. This is what I get with the 1.8.2 i18n/__init.py
 151 
 152 2009-02-25 19:29:11,299 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
 153 2009-02-25 19:29:11,502 MoinMoin.config.multiconfig DEBUG could not import farmconfig, mapping all URLs to wikiconfig
 154 2009-02-25 19:29:11,518 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.pyc
 155 2009-02-25 19:29:11,519 MoinMoin.i18n DEBUG trying to load translations from cache
 156 2009-02-25 19:29:11,520 MoinMoin.i18n DEBUG cache needs update
 157 2009-02-25 19:29:11,625 MoinMoin.i18n DEBUG loading translation 'zh-tw'
 158 2009-02-25 19:29:11,721 MoinMoin.i18n DEBUG loading translation 'es'
 159 2009-02-25 19:29:11,817 MoinMoin.i18n DEBUG loading translation 'fi'
 160 2009-02-25 19:29:11,906 MoinMoin.i18n DEBUG loading translation 'sk'
 161 2009-02-25 19:29:11,991 MoinMoin.i18n DEBUG loading translation 'zh'
 162 2009-02-25 19:29:12,085 MoinMoin.i18n DEBUG loading translation 'tr'
 163 2009-02-25 19:29:12,179 MoinMoin.i18n DEBUG loading translation 'he'
 164 2009-02-25 19:29:12,266 MoinMoin.i18n DEBUG loading translation 'lv'
 165 2009-02-25 19:29:12,340 MoinMoin.i18n DEBUG loading translation 'nb'
 166 2009-02-25 19:29:12,423 MoinMoin.i18n DEBUG loading translation 'uk'
 167 2009-02-25 19:29:12,512 MoinMoin.i18n DEBUG loading translation 'lt'
 168 2009-02-25 19:29:12,610 MoinMoin.i18n DEBUG loading translation 'fr'
 169 2009-02-25 19:29:12,705 MoinMoin.i18n DEBUG loading translation 'it'
 170 2009-02-25 19:29:12,770 MoinMoin.i18n DEBUG loading translation 'ar'
 171 2009-02-25 19:29:12,852 MoinMoin.i18n DEBUG loading translation 'mn'
 172 2009-02-25 19:29:12,935 MoinMoin.i18n DEBUG loading translation 'bg'
 173 2009-02-25 19:29:13,027 MoinMoin.i18n DEBUG loading translation 'sl'
 174 2009-02-25 19:29:13,115 MoinMoin.i18n DEBUG loading translation 'pl'
 175 2009-02-25 19:29:13,199 MoinMoin.i18n DEBUG loading translation 'da'
 176 2009-02-25 19:29:13,295 MoinMoin.i18n DEBUG loading translation 'fa'
 177 2009-02-25 19:29:13,374 MoinMoin.i18n DEBUG loading translation 'ko'
 178 2009-02-25 19:29:13,457 MoinMoin.i18n DEBUG loading translation 'ca'
 179 2009-02-25 19:29:13,533 MoinMoin.i18n DEBUG loading translation 'hu'
 180 2009-02-25 19:29:13,625 MoinMoin.i18n DEBUG loading translation 'ru'
 181 2009-02-25 19:29:13,710 MoinMoin.i18n DEBUG loading translation 'pt-br'
 182 2009-02-25 19:29:13,777 MoinMoin.i18n DEBUG loading translation 'el'
 183 2009-02-25 19:29:13,849 MoinMoin.i18n DEBUG loading translation 'vi'
 184 2009-02-25 19:29:13,931 MoinMoin.i18n DEBUG loading translation 'nl'
 185 2009-02-25 19:29:14,024 MoinMoin.i18n DEBUG loading translation 'sr'
 186 2009-02-25 19:29:14,120 MoinMoin.i18n DEBUG loading translation 'mk'
 187 2009-02-25 19:29:14,211 MoinMoin.i18n DEBUG loading translation 'sv'
 188 2009-02-25 19:29:14,276 MoinMoin.i18n DEBUG loading translation 'hi'
 189 2009-02-25 19:29:14,371 MoinMoin.i18n DEBUG loading translation 'hr'
 190 2009-02-25 19:29:14,459 MoinMoin.i18n DEBUG loading translation 'id'
 191 2009-02-25 19:29:14,542 MoinMoin.i18n DEBUG loading translation 'cs'
 192 2009-02-25 19:29:14,633 MoinMoin.i18n DEBUG loading translation 'de'
 193 2009-02-25 19:29:14,691 MoinMoin.i18n DEBUG loading translation 'en'
 194 2009-02-25 19:29:14,782 MoinMoin.i18n DEBUG loading translation 'ja'
 195 2009-02-25 19:29:14,867 MoinMoin.i18n DEBUG loading translation 'pt'
 196 2009-02-25 19:29:14,945 MoinMoin.i18n DEBUG loading translation 'ro'
 197 2009-02-25 19:29:15,010 MoinMoin.i18n DEBUG loading translation 'ku'
 198 2009-02-25 19:29:15,089 MoinMoin.i18n DEBUG loading translation 'gl'
 199 2009-02-25 19:29:15,089 MoinMoin.i18n DEBUG dumping language metadata to disk cache
 200 2009-02-25 19:29:15,092 MoinMoin.i18n DEBUG loading language metadata from disk cache
 201 2009-02-25 19:29:15,093 MoinMoin.session DEBUG got cookie with session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk'
 202 2009-02-25 19:29:15,093 MoinMoin.session DEBUG starting session (reusing session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk')
 203 2009-02-25 19:29:15,094 MoinMoin.session DEBUG session started for user None
 204 2009-02-25 19:29:15,094 MoinMoin.session DEBUG after auth: no valid user, no anon session
 205 2009-02-25 19:29:15,106 MoinMoin.i18n DEBUG langfilename /usr/lib/python2.4/site-packages/MoinMoin/i18n/en.MoinMoin.po needs update
 206 2009-02-25 19:29:15,162 MoinMoin.i18n DEBUG dumping lang en
 207 2009-02-25 19:29:15,204 MoinMoin.failure ERROR An exception occurred, URI was "/gpc/".
 208 Traceback (most recent call last):
 209   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1275, in run
 210     self.page = wikiutil.getFrontPage(self)
 211   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 787, in getFrontPage
 212     return getLocalizedPage(request, request.cfg.page_front_page)
 213   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 756, in getLocalizedPage
 214     i18n_name = request.getText(pagename)
 215   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 248, in <lambda>
 216     self.getText = lambda text, i18n=self.i18n, request=self, lang=self.lang, **kv: i18n.getText(text, request, lang, **kv)
 217   File "/usr/lib/python2.4/site-packages/MoinMoin/i18n/__init__.py", line 285, in getText
 218     language = languages[lang]['x-language-in-english']
 219 TypeError: unsubscriptable object
 220 
 221 And if I patch the above to
 222 
 223     if languages:
 224         language = languages[lang]['x-language-in-english']
 225     else:
 226         language = lang
 227 
 228 I get
 229 
 230 2009-02-25 19:31:26,225 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
 231 2009-02-25 19:31:26,424 MoinMoin.config.multiconfig DEBUG could not import farmconfig, mapping all URLs to wikiconfig
 232 2009-02-25 19:31:26,440 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.pyc
 233 2009-02-25 19:31:26,442 MoinMoin.i18n DEBUG trying to load translations from cache
 234 2009-02-25 19:31:26,442 MoinMoin.i18n DEBUG cache needs update
 235 2009-02-25 19:31:26,527 MoinMoin.i18n DEBUG loading translation 'zh-tw'
 236 2009-02-25 19:31:26,613 MoinMoin.i18n DEBUG loading translation 'es'
 237 2009-02-25 19:31:26,700 MoinMoin.i18n DEBUG loading translation 'fi'
 238 2009-02-25 19:31:26,785 MoinMoin.i18n DEBUG loading translation 'sk'
 239 2009-02-25 19:31:26,869 MoinMoin.i18n DEBUG loading translation 'zh'
 240 2009-02-25 19:31:26,951 MoinMoin.i18n DEBUG loading translation 'tr'
 241 2009-02-25 19:31:27,033 MoinMoin.i18n DEBUG loading translation 'he'
 242 2009-02-25 19:31:27,117 MoinMoin.i18n DEBUG loading translation 'lv'
 243 2009-02-25 19:31:27,189 MoinMoin.i18n DEBUG loading translation 'nb'
 244 2009-02-25 19:31:27,272 MoinMoin.i18n DEBUG loading translation 'uk'
 245 2009-02-25 19:31:27,359 MoinMoin.i18n DEBUG loading translation 'lt'
 246 2009-02-25 19:31:27,455 MoinMoin.i18n DEBUG loading translation 'fr'
 247 2009-02-25 19:31:27,548 MoinMoin.i18n DEBUG loading translation 'it'
 248 2009-02-25 19:31:27,611 MoinMoin.i18n DEBUG loading translation 'ar'
 249 2009-02-25 19:31:27,691 MoinMoin.i18n DEBUG loading translation 'mn'
 250 2009-02-25 19:31:27,771 MoinMoin.i18n DEBUG loading translation 'bg'
 251 2009-02-25 19:31:27,859 MoinMoin.i18n DEBUG loading translation 'sl'
 252 2009-02-25 19:31:27,946 MoinMoin.i18n DEBUG loading translation 'pl'
 253 2009-02-25 19:31:28,025 MoinMoin.i18n DEBUG loading translation 'da'
 254 2009-02-25 19:31:28,113 MoinMoin.i18n DEBUG loading translation 'fa'
 255 2009-02-25 19:31:28,190 MoinMoin.i18n DEBUG loading translation 'ko'
 256 2009-02-25 19:31:28,268 MoinMoin.i18n DEBUG loading translation 'ca'
 257 2009-02-25 19:31:28,342 MoinMoin.i18n DEBUG loading translation 'hu'
 258 2009-02-25 19:31:28,433 MoinMoin.i18n DEBUG loading translation 'ru'
 259 2009-02-25 19:31:28,514 MoinMoin.i18n DEBUG loading translation 'pt-br'
 260 2009-02-25 19:31:28,580 MoinMoin.i18n DEBUG loading translation 'el'
 261 2009-02-25 19:31:28,650 MoinMoin.i18n DEBUG loading translation 'vi'
 262 2009-02-25 19:31:28,731 MoinMoin.i18n DEBUG loading translation 'nl'
 263 2009-02-25 19:31:28,822 MoinMoin.i18n DEBUG loading translation 'sr'
 264 2009-02-25 19:31:28,917 MoinMoin.i18n DEBUG loading translation 'mk'
 265 2009-02-25 19:31:29,004 MoinMoin.i18n DEBUG loading translation 'sv'
 266 2009-02-25 19:31:29,068 MoinMoin.i18n DEBUG loading translation 'hi'
 267 2009-02-25 19:31:29,149 MoinMoin.i18n DEBUG loading translation 'hr'
 268 2009-02-25 19:31:29,232 MoinMoin.i18n DEBUG loading translation 'id'
 269 2009-02-25 19:31:29,311 MoinMoin.i18n DEBUG loading translation 'cs'
 270 2009-02-25 19:31:29,399 MoinMoin.i18n DEBUG loading translation 'de'
 271 2009-02-25 19:31:29,456 MoinMoin.i18n DEBUG loading translation 'en'
 272 2009-02-25 19:31:29,544 MoinMoin.i18n DEBUG loading translation 'ja'
 273 2009-02-25 19:31:29,626 MoinMoin.i18n DEBUG loading translation 'pt'
 274 2009-02-25 19:31:29,701 MoinMoin.i18n DEBUG loading translation 'ro'
 275 2009-02-25 19:31:29,766 MoinMoin.i18n DEBUG loading translation 'ku'
 276 2009-02-25 19:31:29,844 MoinMoin.i18n DEBUG loading translation 'gl'
 277 2009-02-25 19:31:29,845 MoinMoin.i18n DEBUG dumping language metadata to disk cache
 278 2009-02-25 19:31:29,847 MoinMoin.i18n DEBUG loading language metadata from disk cache
 279 2009-02-25 19:31:29,848 MoinMoin.session DEBUG got cookie with session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk'
 280 2009-02-25 19:31:29,849 MoinMoin.session DEBUG starting session (reusing session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk')
 281 2009-02-25 19:31:29,849 MoinMoin.session DEBUG session started for user None
 282 2009-02-25 19:31:29,849 MoinMoin.session DEBUG after auth: no valid user, no anon session
 283 2009-02-25 19:31:29,862 MoinMoin.i18n DEBUG langfilename /usr/lib/python2.4/site-packages/MoinMoin/i18n/en.MoinMoin.po needs update
 284 2009-02-25 19:31:29,918 MoinMoin.i18n DEBUG dumping lang en
 285 2009-02-25 19:31:29,948 MoinMoin.failure ERROR An exception occurred, URI was "/gpc/".
 286 Traceback (most recent call last):
 287   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1311, in run
 288     handler(self.page.page_name, self)
 289   File "/usr/lib/python2.4/site-packages/MoinMoin/action/__init__.py", line 253, in do_show
 290     content_only=content_only,
 291   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1173, in send_page
 292     html_head=html_head,
 293   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1715, in send_title
 294     bodyattr.append(' %s' % self.ui_lang_attr())
 295   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1520, in ui_lang_attr
 296     return ' lang="%s" dir="%s"' % (lang, i18n.getDirection(lang))
 297   File "/usr/lib/python2.4/site-packages/MoinMoin/i18n/__init__.py", line 238, in getDirection
 298     return languages[lang]['x-direction']
 299 TypeError: unsubscriptable object
 300 
 301 If I then patch that to
 302 
 303     if languages:
 304         return languages[lang]['x-direction']
 305     else:
 306         return 'ltr'
 307 
 308 I get
 309 
 310 2009-02-25 19:33:03,837 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
 311 2009-02-25 19:33:04,040 MoinMoin.config.multiconfig DEBUG could not import farmconfig, mapping all URLs to wikiconfig
 312 2009-02-25 19:33:04,057 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.pyc
 313 2009-02-25 19:33:04,058 MoinMoin.i18n DEBUG trying to load translations from cache
 314 2009-02-25 19:33:04,059 MoinMoin.i18n DEBUG cache needs update
 315 2009-02-25 19:33:04,143 MoinMoin.i18n DEBUG loading translation 'zh-tw'
 316 2009-02-25 19:33:04,230 MoinMoin.i18n DEBUG loading translation 'es'
 317 2009-02-25 19:33:04,318 MoinMoin.i18n DEBUG loading translation 'fi'
 318 2009-02-25 19:33:04,404 MoinMoin.i18n DEBUG loading translation 'sk'
 319 2009-02-25 19:33:04,487 MoinMoin.i18n DEBUG loading translation 'zh'
 320 2009-02-25 19:33:04,569 MoinMoin.i18n DEBUG loading translation 'tr'
 321 2009-02-25 19:33:04,651 MoinMoin.i18n DEBUG loading translation 'he'
 322 2009-02-25 19:33:04,734 MoinMoin.i18n DEBUG loading translation 'lv'
 323 2009-02-25 19:33:04,806 MoinMoin.i18n DEBUG loading translation 'nb'
 324 2009-02-25 19:33:04,888 MoinMoin.i18n DEBUG loading translation 'uk'
 325 2009-02-25 19:33:04,976 MoinMoin.i18n DEBUG loading translation 'lt'
 326 2009-02-25 19:33:05,074 MoinMoin.i18n DEBUG loading translation 'fr'
 327 2009-02-25 19:33:05,167 MoinMoin.i18n DEBUG loading translation 'it'
 328 2009-02-25 19:33:05,232 MoinMoin.i18n DEBUG loading translation 'ar'
 329 2009-02-25 19:33:05,312 MoinMoin.i18n DEBUG loading translation 'mn'
 330 2009-02-25 19:33:05,393 MoinMoin.i18n DEBUG loading translation 'bg'
 331 2009-02-25 19:33:05,480 MoinMoin.i18n DEBUG loading translation 'sl'
 332 2009-02-25 19:33:05,568 MoinMoin.i18n DEBUG loading translation 'pl'
 333 2009-02-25 19:33:05,647 MoinMoin.i18n DEBUG loading translation 'da'
 334 2009-02-25 19:33:05,735 MoinMoin.i18n DEBUG loading translation 'fa'
 335 2009-02-25 19:33:05,812 MoinMoin.i18n DEBUG loading translation 'ko'
 336 2009-02-25 19:33:05,890 MoinMoin.i18n DEBUG loading translation 'ca'
 337 2009-02-25 19:33:05,965 MoinMoin.i18n DEBUG loading translation 'hu'
 338 2009-02-25 19:33:06,055 MoinMoin.i18n DEBUG loading translation 'ru'
 339 2009-02-25 19:33:06,138 MoinMoin.i18n DEBUG loading translation 'pt-br'
 340 2009-02-25 19:33:06,204 MoinMoin.i18n DEBUG loading translation 'el'
 341 2009-02-25 19:33:06,275 MoinMoin.i18n DEBUG loading translation 'vi'
 342 2009-02-25 19:33:06,357 MoinMoin.i18n DEBUG loading translation 'nl'
 343 2009-02-25 19:33:06,447 MoinMoin.i18n DEBUG loading translation 'sr'
 344 2009-02-25 19:33:06,541 MoinMoin.i18n DEBUG loading translation 'mk'
 345 2009-02-25 19:33:06,628 MoinMoin.i18n DEBUG loading translation 'sv'
 346 2009-02-25 19:33:06,692 MoinMoin.i18n DEBUG loading translation 'hi'
 347 2009-02-25 19:33:06,773 MoinMoin.i18n DEBUG loading translation 'hr'
 348 2009-02-25 19:33:06,856 MoinMoin.i18n DEBUG loading translation 'id'
 349 2009-02-25 19:33:06,935 MoinMoin.i18n DEBUG loading translation 'cs'
 350 2009-02-25 19:33:07,025 MoinMoin.i18n DEBUG loading translation 'de'
 351 2009-02-25 19:33:07,081 MoinMoin.i18n DEBUG loading translation 'en'
 352 2009-02-25 19:33:07,170 MoinMoin.i18n DEBUG loading translation 'ja'
 353 2009-02-25 19:33:07,253 MoinMoin.i18n DEBUG loading translation 'pt'
 354 2009-02-25 19:33:07,328 MoinMoin.i18n DEBUG loading translation 'ro'
 355 2009-02-25 19:33:07,394 MoinMoin.i18n DEBUG loading translation 'ku'
 356 2009-02-25 19:33:07,472 MoinMoin.i18n DEBUG loading translation 'gl'
 357 2009-02-25 19:33:07,472 MoinMoin.i18n DEBUG dumping language metadata to disk cache
 358 2009-02-25 19:33:07,475 MoinMoin.i18n DEBUG loading language metadata from disk cache
 359 2009-02-25 19:33:07,476 MoinMoin.session DEBUG got cookie with session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk'
 360 2009-02-25 19:33:07,476 MoinMoin.session DEBUG starting session (reusing session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk')
 361 2009-02-25 19:33:07,477 MoinMoin.session DEBUG session started for user None
 362 2009-02-25 19:33:07,477 MoinMoin.session DEBUG after auth: no valid user, no anon session
 363 2009-02-25 19:33:07,489 MoinMoin.i18n DEBUG langfilename /usr/lib/python2.4/site-packages/MoinMoin/i18n/en.MoinMoin.po needs update
 364 2009-02-25 19:33:07,545 MoinMoin.i18n DEBUG dumping lang en
 365 2009-02-25 19:33:07,601 MoinMoin.failure ERROR An exception occurred, URI was "/gpc/".
 366 Traceback (most recent call last):
 367   File "/usr/lib/python2.4/site-packages/MoinMoin/request/__init__.py", line 1311, in run
 368     handler(self.page.page_name, self)
 369   File "/usr/lib/python2.4/site-packages/MoinMoin/action/__init__.py", line 253, in do_show
 370     content_only=content_only,
 371   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1173, in send_page
 372     html_head=html_head,
 373   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1787, in send_title
 374     output.append(self.header(d))
 375   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/modernized.py", line 88, in header
 376     html = [
 377   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1110, in editbar
 378     for item in self.editbarItems(page):
 379   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1176, in editbarItems
 380     editbar_actions.append(self.actionsMenu(page))
 381   File "/usr/lib/python2.4/site-packages/MoinMoin/theme/__init__.py", line 1001, in actionsMenu
 382     if not page.canUseCache():
 383   File "/usr/lib/python2.4/site-packages/MoinMoin/Page.py", line 1266, in canUseCache
 384     parser = wikiutil.searchAndImportPlugin(self.request.cfg, "parser", self.pi['format'])
 385   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1232, in searchAndImportPlugin
 386     plugin = importPlugin(cfg, type, module_name, what)
 387   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1111, in importPlugin
 388     return importBuiltinPlugin(kind, name, function)
 389   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1135, in importBuiltinPlugin
 390     return importNameFromPlugin(moduleName, function)
 391   File "/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py", line 1148, in importNameFromPlugin
 392     module = __import__(moduleName, globals(), {}, fromlist)
 393   File "/usr/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py", line 16, in ?
 394     from MoinMoin import config, wikiutil, macro
 395   File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 51, in ?
 396     class Macro:
 397   File "/usr/lib/python2.4/site-packages/MoinMoin/macro/__init__.py", line 79, in Macro
 398     for lang in i18n.wikiLanguages():
 399 TypeError: iteration over non-sequence
 400 
 401 and if I revert to the 1.8.1 i18n/__init__.py with only the
 402 
 403     if languages:
 404         language = languages[lang]['x-language-in-english']
 405     else:
 406         language = lang
 407 
 408 patch, it works
 409 
 410 Note that in all the failures, the last two DEBUG entries before the exception are
 411 
 412 MoinMoin.i18n DEBUG langfilename /usr/lib/python2.4/site-packages/MoinMoin/i18n/en.MoinMoin.po needs update
 413 MoinMoin.i18n DEBUG dumping lang en
 414 
 415 whereas below I see instead
 416 
 417 MoinMoin.i18n DEBUG pickle en load success
 418 
 419 Somehow, no matter what I do, the caching isn't working properly with scope='wiki' as opposed to scope='farm'
 420 
 421 
 422 2009-02-25 19:35:23,488 MoinMoin.log INFO using logging configuration read from "/var/www/grizz/moin/gpc/logfile_debug_auth"
 423 2009-02-25 19:35:23,691 MoinMoin.config.multiconfig DEBUG could not import farmconfig, mapping all URLs to wikiconfig
 424 2009-02-25 19:35:23,707 MoinMoin.config.multiconfig INFO using wiki config: /var/www/grizz/moin/gpc/wikiconfig.pyc
 425 2009-02-25 19:35:23,709 MoinMoin.i18n DEBUG trying to load translations from cache
 426 2009-02-25 19:35:23,709 MoinMoin.i18n DEBUG cache needs update
 427 2009-02-25 19:35:23,796 MoinMoin.i18n DEBUG loading translation 'zh-tw'
 428 2009-02-25 19:35:23,886 MoinMoin.i18n DEBUG loading translation 'es'
 429 2009-02-25 19:35:23,977 MoinMoin.i18n DEBUG loading translation 'fi'
 430 2009-02-25 19:35:24,066 MoinMoin.i18n DEBUG loading translation 'sk'
 431 2009-02-25 19:35:24,151 MoinMoin.i18n DEBUG loading translation 'zh'
 432 2009-02-25 19:35:24,236 MoinMoin.i18n DEBUG loading translation 'tr'
 433 2009-02-25 19:35:24,319 MoinMoin.i18n DEBUG loading translation 'he'
 434 2009-02-25 19:35:24,408 MoinMoin.i18n DEBUG loading translation 'lv'
 435 2009-02-25 19:35:24,483 MoinMoin.i18n DEBUG loading translation 'nb'
 436 2009-02-25 19:35:24,568 MoinMoin.i18n DEBUG loading translation 'uk'
 437 2009-02-25 19:35:24,658 MoinMoin.i18n DEBUG loading translation 'lt'
 438 2009-02-25 19:35:24,757 MoinMoin.i18n DEBUG loading translation 'fr'
 439 2009-02-25 19:35:24,854 MoinMoin.i18n DEBUG loading translation 'it'
 440 2009-02-25 19:35:24,919 MoinMoin.i18n DEBUG loading translation 'ar'
 441 2009-02-25 19:35:25,002 MoinMoin.i18n DEBUG loading translation 'mn'
 442 2009-02-25 19:35:25,085 MoinMoin.i18n DEBUG loading translation 'bg'
 443 2009-02-25 19:35:25,175 MoinMoin.i18n DEBUG loading translation 'sl'
 444 2009-02-25 19:35:25,265 MoinMoin.i18n DEBUG loading translation 'pl'
 445 2009-02-25 19:35:25,347 MoinMoin.i18n DEBUG loading translation 'da'
 446 2009-02-25 19:35:25,439 MoinMoin.i18n DEBUG loading translation 'fa'
 447 2009-02-25 19:35:25,519 MoinMoin.i18n DEBUG loading translation 'ko'
 448 2009-02-25 19:35:25,598 MoinMoin.i18n DEBUG loading translation 'ca'
 449 2009-02-25 19:35:25,675 MoinMoin.i18n DEBUG loading translation 'hu'
 450 2009-02-25 19:35:25,767 MoinMoin.i18n DEBUG loading translation 'ru'
 451 2009-02-25 19:35:25,852 MoinMoin.i18n DEBUG loading translation 'pt-br'
 452 2009-02-25 19:35:25,921 MoinMoin.i18n DEBUG loading translation 'el'
 453 2009-02-25 19:35:25,994 MoinMoin.i18n DEBUG loading translation 'vi'
 454 2009-02-25 19:35:26,077 MoinMoin.i18n DEBUG loading translation 'nl'
 455 2009-02-25 19:35:26,170 MoinMoin.i18n DEBUG loading translation 'sr'
 456 2009-02-25 19:35:26,266 MoinMoin.i18n DEBUG loading translation 'mk'
 457 2009-02-25 19:35:26,356 MoinMoin.i18n DEBUG loading translation 'sv'
 458 2009-02-25 19:35:26,423 MoinMoin.i18n DEBUG loading translation 'hi'
 459 2009-02-25 19:35:26,506 MoinMoin.i18n DEBUG loading translation 'hr'
 460 2009-02-25 19:35:26,591 MoinMoin.i18n DEBUG loading translation 'id'
 461 2009-02-25 19:35:26,673 MoinMoin.i18n DEBUG loading translation 'cs'
 462 2009-02-25 19:35:26,765 MoinMoin.i18n DEBUG loading translation 'de'
 463 2009-02-25 19:35:26,825 MoinMoin.i18n DEBUG loading translation 'en'
 464 2009-02-25 19:35:26,917 MoinMoin.i18n DEBUG loading translation 'ja'
 465 2009-02-25 19:35:27,000 MoinMoin.i18n DEBUG loading translation 'pt'
 466 2009-02-25 19:35:27,079 MoinMoin.i18n DEBUG loading translation 'ro'
 467 2009-02-25 19:35:27,147 MoinMoin.i18n DEBUG loading translation 'ku'
 468 2009-02-25 19:35:27,228 MoinMoin.i18n DEBUG loading translation 'gl'
 469 2009-02-25 19:35:27,228 MoinMoin.i18n DEBUG dumping language metadata to disk cache
 470 2009-02-25 19:35:27,231 MoinMoin.i18n DEBUG loading language metadata from disk cache
 471 2009-02-25 19:35:27,234 MoinMoin.session DEBUG got cookie with session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk'
 472 2009-02-25 19:35:27,234 MoinMoin.session DEBUG starting session (reusing session_name 'n65dwl9hz0xk0hjj5jjbzqt82_9z39vk')
 473 2009-02-25 19:35:27,234 MoinMoin.session DEBUG session started for user None
 474 2009-02-25 19:35:27,235 MoinMoin.session DEBUG after auth: no valid user, no anon session
 475 2009-02-25 19:35:27,247 MoinMoin.i18n DEBUG pickle en load success

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-02-27 01:58:38, 32.4 KB) [[attachment:moin.error.txt]]
  • [get | view] (2008-12-27 18:09:44, 8.7 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.