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 <module> 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 <module> from MoinMoin.action.PackagePages import PackagePages File "/home/workspace/moin-1.6/MoinMoin/action/PackagePages.py", line 23, in <module> from MoinMoin.search import searchPages File "/home/workspace/moin-1.6/MoinMoin/search/__init__.py", line 13, in <module> from MoinMoin.search.queryparser import QueryParser File "/home/workspace/moin-1.6/MoinMoin/search/queryparser.py", line 20, in <module> from MoinMoin.search import Xapian File "/home/workspace/moin-1.6/MoinMoin/search/Xapian.py", line 18, in <module> 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 <module> from MoinMoin import config, wikiutil, macro File "/home/workspace/moin-1.6/MoinMoin/macro/__init__.py", line 51, in <module> 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
- do this...
Example
Component selection
- general
Details
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
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
- Priority:
- Assigned to:
- Status: can't reproduce the problem