[Trac] Re: Problem with trac on mod_python

Sija sija at o2.pl
Tue Mar 1 06:24:24 EST 2005


Christopher Lenz <cmlenz at ...> writes:

> 
> > [Tue Mar 01 09:11:21 2005] [error] [client 66.249.64.6] PythonHandler
> > trac.web.modpython_frontend: Traceback (most recent call last):
> > [Tue Mar 01 09:11:21 2005] [error] [client 66.249.64.6] PythonHandler
> > trac.web.modpython_frontend:   File
> > "C:\\PROGRA~1\\Python\\Lib\\site-packages\\mod_python\\apache.py", line
> > 299, in
> > HandlerDispatch\n    result = object(req)
> > [Tue Mar 01 09:11:21 2005] [error] [client 66.249.64.6] PythonHandler
> > trac.web.modpython_frontend:   File
> > "C:\\PROGRA~1\\Python\\lib\\site-
> packages\\trac\\web\\modpython_frontend.py",
> > line 201, in handler\n    send_pretty_error(e, env, mpr)
> > [Tue Mar 01 09:11:21 2005] [error] [client 66.249.64.6] PythonHandler
> > trac.web.modpython_frontend:   File
> > "C:\\PROGRA~1\\Python\\lib\\site-packages\\trac\\web\\main.py", line 
> 337,
> > in
> > send_pretty_error\n    if env and env.log:
> > [Tue Mar 01 09:11:21 2005] [error] [client 66.249.64.6] PythonHandler
> > trac.web.modpython_frontend: TypeError: __nonzero__ should return an int
> > 
> > what's wrong ?
> 
> Good catch! I've fixed this problem in http://projects.edgewall.com/trac/
> changeset/1299.
> 
> Note though that this error is hiding a different exception, which will 
> probably pop up next after you upgrade :-P
> 
> Thanks,
> Chris
> 


That's true, this is a real error:

ClearSilver not installed (No module named neo_cgi)
Traceback (most recent call last):
  File "C:\PROGRA~1\Python\lib\site-packages\trac\web\modpython_frontend.py",
line 179, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "C:\PROGRA~1\Python\lib\site-packages\trac\web\main.py", line 301, in
dispatch_request
    req.hdf = HDFWrapper(loadpaths=[env.get_templates_dir(),
  File "C:\PROGRA~1\Python\lib\site-packages\trac\web\clearsilver.py", line 132,
in __init__
    raise TracError, "ClearSilver not installed (%s)" % e
TracError: ClearSilver not installed (No module named neo_cgi)

I have "neo_cgi.pyd" in "C:\Program Files\Python\Lib\site-packages\trac"
and i don't have problems with ClearSilver before HDFWrapper update.



More information about the Trac mailing list