1) mod_python is a deprecated deployment option. The project has been mothballed by its creators in favor of mod_wsgi. You should really switch to a new deployment option (probably mod_wsgi).

2) You probably need a PythonPath in there which indicates where the Trac code is installed.

PythonPath "['/path/to/site-packages'] + sys.path"

--Noah

On Jun 27, 2010, at 1:01 PM, Fernando N Filho wrote:

Hello there,

I recently tried to upgrade my Trac Version from 0.11 to 0.12. But I now receive the following error on http://trac.potterish.com/:
Mod_python error: "PythonHandler trac.web.modpython_frontend"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
    log=debug)

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 461, in import_module
    f, p, d = imp.find_module(parts[i], path)

ImportError: No module named trac
My .htaccess is configured the following way:

SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption PYTHON_EGG_CACHE /var/www/vhosts/potterish.com/ subdomains/trac/httpdocs/editores/db PythonOption TracEnvParentDir /var/www/vhosts/potterish.com/ subdomains/trac/httpdocs
PythonOption TracUriRoot /

PythonDebug on

I looked on the Trac website and saw this had something to do with the Apache Path, but don't know how to fix it, does anybody have an idea of whats going on?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/trac-users?hl=en .

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to