[Trac] Problem with trac on mod_python

Christopher Lenz cmlenz at gmx.de
Tue Mar 1 05:18:57 EST 2005


> [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

-- 
Christopher Lenz
  cmlenz at gmx.de
  http://www.cmlenz.net/


More information about the Trac mailing list