[Moin-user] Apache startup not finding MoinMoin module
Andrew Malcolmson
comp.moin at andzy.imap.cc
Sun Dec 23 08:30:34 EST 2007
I'm upgrading my Moin install on Debian Etch from the Debian package
version to 1.6.0rc1, but I can't get Moin to start when run through
moin.cgi. When starting it from moin.py it works. Before upgrading my
Moin version and changing PREFIX to /usr/local, this worked.
My Apache log shows:
Traceback (most recent call last):
File "/home/andmalc/wiki/moin.cgi", line 29, in ?
import MoinMoin
ImportError: No module named MoinMoin
[Sun Dec 23 08:08:11 2007] [error] [client 67.71.9.102] Premature end of
script headers: /home/andmalc/wiki/moin.cgi
The Pythonpath import lines in moin.cgi are:
# Path of the directory where wikiconfig.py is located.
# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
sys.path.insert(0, '/home/andmalc/wiki')
# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
# or if you did not use setup.py.
sys.path.insert(0, '/usr/local/lib/python2.4/site-packages/')
The above is on the default Pythonpath anyway.
My Debian Python default is 2.4 and if I run it interactively 'import
MoinMoin' works. I've tried symlinking my MoinMoin install to the
site-packages directories for Python 2.3 and 2.5 that are also on this
machine.
-------------------
Andrew Malcolmson
More information about the Moin-user
mailing list