Description
The moin_dump.py script reports an error when trying to run in on OS X. The error it reports is:
ImportError: cannot import name multiconfig
Steps to reproduce
First I moved to the correct directory, which is /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/scripts (trying to run moin_dump from anywhere else results in a python: can't open file 'moin_dump.py' error)
Then i run python moin_dump.py --config='/usr/local/share/moin/devwiki/wikiconfig.py' ~/Desktop/moin-export
- I get the following error spat out {{{Needed 0.030 secs.
Traceback (most recent call last):
- File "/Library/Python/2.3/MoinMoin/scripts/moin_dump.py", line 183, in ?
- run()
MoinDump().run()
- self.mainloop()
- request = RequestCLI(self.options.wiki_url)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/request.py", line 1381, in init
RequestBase.init(self, properties)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/request.py", line 86, in init
- self._load_multi_cfg()
from MoinMoin import multiconfig
ImportError: cannot import name multiconfig}}}
- I have tried variations with different values for --config and also --wiki, but i get the same error each time (so long as i have a valid path for --config)
Example
Details
MoinMoin Version |
1.3.4 |
OS and Version |
Mac OS X 10.3.9 |
Python Version |
2.3 |
Server Setup |
Default Apache Server that comes with OS X (with php added) |
Server Details |
? |
Workaround
Discussion
The problem is a call to os.chdir() to the configuration directory, which is not needed.
Plan
- Priority: high - important funcionality lost
- Assigned to:
- Status: fixed in 1.3.5