[Moin-user] ImportError: cannot import name cgimain
J. Wren Hunt
wren at hunt.org
Fri Apr 15 16:54:00 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hi all!
Short question: Where/how do I locate cgimain?
Long version:
I'm running Debian Sarge and just recently performed an upgrade. As a
result my MoinMoin installation broke. Prior to the upgrade I was
running 1.2x (not sure of sub-version) and now it's up to: 1.3. This was
done with debian's "apt-get upgrade" procedure - no manual untarring, etc.,
My Apache errorlog shows:
[Fri Apr 15 19:38:39 2005] [error] [client 192.168.1.1] File
"/usr/share/moin/cacert/moin.cgi", line 31, in ?
[Fri Apr 15 19:38:39 2005] [error] [client 192.168.1.1] from
MoinMoin import cgimain
[Fri Apr 15 19:38:39 2005] [error] [client 192.168.1.1] ImportError:
cannot import name cgimain
[Fri Apr 15 19:38:39 2005] [error] [client 192.168.1.1] Premature end of
script headers: moin.cgi
e
Appending "/?test" to the end of my URL (i.e.,
http://cacert.webhop.org/?test) gives:
MoinMoin CGI Diagnosis
======================
Your PYTHONPATH is:
['/usr/share/moin/cacert',
~ '/usr/lib/python23.zip',
~ '/usr/lib/python2.3',
~ '/usr/lib/python2.3/plat-linux2',
~ '/usr/lib/python2.3/lib-tk',
~ '/usr/lib/python2.3/lib-dynload',
~ '/usr/local/lib/python2.3/site-packages',
~ '/usr/lib/python2.3/site-packages',
~ '/usr/lib/python2.3/site-packages/Numeric',
~ '/usr/lib/python2.3/site-packages/gtk-2.0']
Traceback (innermost last):
~ File "/usr/share/moin/cacert/moin.cgi", line 20, in ?
~ from MoinMoin import cgimain
~ ImportError: cannot import name cgimain
I found the Wiki entry: "Premature end of script headers" entry at:
http://moinmoin.wikiwikiweb.de/MoinMoinQuestions#head-cc52883b626436575dfa41fd54cb3ec2f2fbfdee
But nothing on cgimain. Where did I (& my upgrade!) go wrong? Thanks!
- --
Cheers!
J. Wren Hunt
Cambridge, MA. USA
- ------------
"In theory, there is no difference between theory and practice. But, in
practice, there is." - Jan L.A. van de Snepscheut
+------------------------------------------------------------------+
| v-card http://wrenhunt.homelinux.org/data/wren.vcf |
| x.509 http://wrenhunt.homelinux.org/data/thawte_wren_hunt.cer |
| OpenPGP ADF5 1432 A59E 8F4D 4AE7 4DFE 03FA 91E1 4A24 D6F4 |
+------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFCYFPiA/qR4Uok1vQRA73dAKCyWeDpEzvFRqVd/YUJqXCei/ITPQCgmKNI
FSby93Vddwjft4FX1LrJhrA=
=+/hu
-----END PGP SIGNATURE-----
More information about the Moin-user
mailing list