= Description = strange TypeError calling export package {{{ moin-1.6$ MoinMoin/script/moin.py --config-dir=/home/workspace/moin-1.6 --wiki-url=http://localhost export package }}} {{{ MoinMoin/script/moin.py --config-dir=/home/workspace/moin-1.6 --wiki-url=http://localhost export package Traceback (most recent call last): File "MoinMoin/script/moin.py", line 24, in run() File "MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "MoinMoin/script/../../MoinMoin/script/__init__.py", line 137, in run self.mainloop() File "MoinMoin/script/../../MoinMoin/script/__init__.py", line 241, in mainloop plugin_class = wikiutil.importBuiltinPlugin('script.%s' % cmd_module, cmd_name, 'PluginScript') File "/home/workspace/moin-1.6/MoinMoin/wikiutil.py", line 1118, in importBuiltinPlugin return importNameFromPlugin(moduleName, function) File "/home/workspace/moin-1.6/MoinMoin/wikiutil.py", line 1126, in importNameFromPlugin module = __import__(moduleName, globals(), {}, [name]) File "MoinMoin/script/../../MoinMoin/script/export/package.py", line 19, in from MoinMoin.action.PackagePages import PackagePages File "/home/workspace/moin-1.6/MoinMoin/action/PackagePages.py", line 23, in from MoinMoin.search import searchPages File "/home/workspace/moin-1.6/MoinMoin/search/__init__.py", line 13, in from MoinMoin.search.queryparser import QueryParser File "/home/workspace/moin-1.6/MoinMoin/search/queryparser.py", line 20, in from MoinMoin.search import Xapian File "/home/workspace/moin-1.6/MoinMoin/search/Xapian.py", line 18, in from MoinMoin.parser.text_moin_wiki import Parser as WikiParser File "/home/workspace/moin-1.6/MoinMoin/parser/text_moin_wiki.py", line 14, in from MoinMoin import config, wikiutil, macro File "/home/workspace/moin-1.6/MoinMoin/macro/__init__.py", line 51, in class Macro: File "/home/workspace/moin-1.6/MoinMoin/macro/__init__.py", line 83, in Macro for lang in i18n.wikiLanguages(): TypeError: 'NoneType' object is not iterable }}} == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. do this... == Example == ##Add URL that show the bug, screenshot or test wiki markup that fail... ##URL: ##attachment:screenshot.png ##{{{ ##Example wiki markup that fail ##}}} == Component selection == ## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ... * general == Details == ## If you got a traceback, please save the traceback page as html and attach here: ## attachment:traceback.html ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!MoinMoin Version''' || 1.6dev || || '''OS and Version''' || || || '''Python Version''' || || || '''Server Setup''' || || || '''Server Details''' || || || '''Language you are using the wiki in''' (set in the browser/UserPreferences) || || == Workaround == ## How to deal with the bug until it is fixed = Discussion = I think we have to initialize request quite early {{{ diff -r 259d24ac0068 MoinMoin/script/__init__.py --- a/MoinMoin/script/__init__.py Sat Dec 08 09:48:33 2007 +0100 +++ b/MoinMoin/script/__init__.py Sat Dec 08 10:39:26 2007 +0100 @@ -134,6 +134,8 @@ class Script: try: self.options, self.args = self.parser.parse_args(self.argv) flag_quiet = self.options.quiet + # Initalize request + self.init_request() self.mainloop() except KeyboardInterrupt: log("*** Interrupted by user!") }}} = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: can't reproduce the problem ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinNoBug