[Moin-user] No Module
Simon
s-i-m-o-n at paradise.net.nz
Fri Jun 20 00:36:45 EDT 2003
I've just upgraded my apache from 2.0.36 (Win32) to 2.0.46 (Win32) - and thats all I changed
My moinmoin stopped working.
Needless to say it was working fine up till then.
I have the same apache config file.
Presumably I need to reset up something, but what?
On inspection I am getting (from the apache error log)
Premature end of script headers: moin.cgi
Traceback (most recent call last):
File "C:/Moin/simonwiki/moin.cgi", line 31, in ?
from MoinMoin import cgimain
I've had a quick look at
http://twistedmatrix.com/users/jh.twistd/moin/moin.cgi/HelpOnInstalling_2fApacheOnWin32
I've tried both moin.cgi
and moin.bat (which I was running from)
moin.bat
@echo off
set PYTHONPATH=C:\Moin\Lib\site-packages
c:
cd \moin\simonwiki
"c:\program files\python22\python.exe" moin.cgi
More information
Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Python is installed in "c:/program files/python22"
I'm running moinmoin 1.6 (from moin_config.py)
Any suggestions would be greatly appreciated
MoinMoin CGI Diagnosis
======================
Your PYTHONPATH is:
['C:/Moin/simonwiki',
'C:\\program files\\python22\\DLLs',
'C:\\program files\\python22\\lib',
'C:\\program files\\python22\\lib\\lib-tk',
'C:\\program files\\python22',
'C:\\program files\\python22\\lib\\site-packages']
Traceback (innermost last):
File "C:/Moin/simonwiki/moin.cgi", line 20, in ?
from MoinMoin import cgimain
ImportError: No module named MoinMoin
moin.cgi
#! "c:/program files/python22/python"
"""
MoinMoin - CGI Driver Script
Copyright (c) 2000 by Jürgen Hermann <jh at web.de>
All rights reserved, see COPYING for details.
$Id: moin.cgi,v 1.2 2002/03/11 21:48:48 jhermann Exp $
"""
#import sys
#sys.path.append('/usr/local/home/USERNAME/lib/python')
import os
if os.environ.get('QUERY_STRING') == 'test':
print "Content-Type: text/plain\n\nMoinMoin CGI Diagnosis\n======================\n"
try:
from MoinMoin import cgimain
print 'Package "MoinMoin" sucessfully imported.\n'
cgimain.test()
except:
import sys, traceback, string, pprint
type, value, tb = sys.exc_info()
if type == ImportError:
print 'Your PYTHONPATH is:\n%s' % pprint.pformat(sys.path)
print "\nTraceback (innermost last):\n%s" % string.join(
traceback.format_tb(tb) + traceback.format_exception_only(type, value))
else:
from MoinMoin import cgimain
cgimain.run()
More information about the Moin-user
mailing list