Folks, 

I'm trying to set up the trac running via mod_python, but am stuck with
something stupid.

1. I've created <wwwroot>/projects/<tracname>
2. Put there the following .htaccess:

SetHandler python-program
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/lib/trac/<tracname>
PythonOption TracUriRoot /projects/<tracname>

3. Trying to acces the url http://<sitename>/projects/<tracname>/wiki I get
   the following in my error logs:

[Sat Dec 24 16:46:31 2005] [error] PythonHandler trac.web.modpython_frontend: 
Traceback (most recent call last):
[Sat Dec 24 16:46:31 2005] [error] PythonHandler trac.web.modpython_frontend:   
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 193, in 
Dispatch\n    result = object(req)
[Sat Dec 24 16:46:31 2005] [error] PythonHandler trac.web.modpython_frontend:   
File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 
193, in handler\n    mpr = ModPythonRequest(req, options)
[Sat Dec 24 16:46:31 2005] [error] PythonHandler trac.web.modpython_frontend:   
File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 
49, in __init__\n    self.remote_user = self.req.user
[Sat Dec 24 16:46:31 2005] [error] PythonHandler trac.web.modpython_frontend:   
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 85, in 
__getattr__\n    raise AttributeError, attr
[Sat Dec 24 16:46:31 2005] [error] PythonHandler trac.web.modpython_frontend: 
AttributeError: user

Linux, trac 0.9, mod_python 2.7.11

What I'm doing wrong?

-- 
Andrey V Khavryuchenko            http://www.kds.com.ua/
Silver Bullet Software Solutions  http://www.livejournal.com/~akhavr
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to