[Moin-user] Bug in 0.10 test.cgi

Juergen Hermann jh at web.de
Fri Nov 23 02:14:05 EST 2001

When you get the following exception, all is well, it's a bug in 
cgimain.py that is already fixed.

If you want to patch this in your release version, add the following 
code directly at the top of the test() function in cgimain.py:

    # set up request data
    from MoinMoin.request import Request
    global request
    request = Request()

MoinMoin CGI Diagnosis

Package "MoinMoin" sucessfully imported.

Traceback (innermost last):
  File "/var/www/htdocs/MoinMoin/test.cgi", line 42, in ?
   File "/var/www/htdocs/MoinMoin/test.cgi", line 32, in run
   File "/usr/local/lib/python2.0/site-packages/MoinMoin/cgimain.py", 
22, in test
    from MoinMoin import config, util, version, editlog
   File "/usr/local/lib/python2.0/site-packages/MoinMoin/editlog.py", 
16, in ?
    from MoinMoin.Page import Page
   File "/usr/local/lib/python2.0/site-packages/MoinMoin/Page.py", 
line 13,
in ?
    from MoinMoin.cgimain import request
 ImportError: cannot import name request

More information about the Moin-user mailing list