Wikiserverconfig.py is required but not installed
I installed version 1.7.0 and attempted to use moin in standalone mode. I created a new blank wiki (just containing the data and underlay folders and the wikiconfig.py from the /usr/share/moin installation as per http://moinmo.in/HelpOnInstalling/WikiInstanceCreation) then I entered its directory and used
moin server standalone --start
this gives me the following error
File "/usr/lib64/python2.5/site-packages/MoinMoin/script/server/standalone.py", line 100, in mainloop from wikiserverconfig import Config ImportError: No module named wikiserverconfig
I have discovered that the wikiserverconfig.py file does not actually get installed, though it is present in the toplevel of the source tarball. So I then copied that file to my wiki dir and tried again. I got the same error, I realised that this was due to the present dir is not used by default for the config-dir option (despite moin claiming otherwise), ie
--config-dir=DIR Path to the directory containing the wiki configuration files. [default: current directory]
is not actually correct (I confirmed this by browsing the source, MoinMoin/script/server/standalone.py line 98).
So to get it to work in the end I had to explicitly specify the config dir and copy over the wikiserverconfig.py from source.
TO GET WORKING cp unpacked-source-folder/wikiserverconfig.py yourwiki-dir moin --config-dir=your-wikidir server standalone --start
So the bugs I see are that a) wikiserverconfig.py is required but not supplied b) the current working dir is not added to path for config-dir if not specified.
To solve a) perhaps standalone.py should be changed to handle it not being found, after all it is only needed if you want to change the defaults I think. Or else it should be installed by default to the same dir as wikiconfig.py (/usr/share/moin/config) and included in the files to be copied to create a standalone wiki.
Component selection
- standalone server (bug present in MoinMoin/script/server/standalone.py)
Details
MoinMoin Version |
1.7.0 |
OS and Version |
opensuse 11.0 |
Python Version |
2.5.2 |
Server Setup |
standalone |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
- Either see solution above.
- Or just do not "install" moin using setup.py (just unpack it and then run ./wikiserver.py).
Discussion
Plan
- Priority:
- Assigned to:
- Status: fixed (uses builtin default config now instead of complaining about wikiserverconfig.py), also added wikiserverconfig.py to wiki/server/ directory.