Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to setup a trac environment under Snow Leopard Server. I am now failing on the apache part.

In the apache error_log is the error


Trac detected an internal error:

No module named trac.web

Traceback (most recent call last):
  File "/Library/WebServer/CGI-Executables/trac.fcgi", line 31, in <module>
    from trac.web import fcgi_frontend
ImportError: No module named trac.web

How can I fix this?

share|improve this question

It sounds like the trac library isn't in your PYTHONPATH; if you're setting this up using Apache, you can add the following to your Apache config, under the Directory or Location entry for trac:

SetEnv PYTHONPATH /path/to/trac/install
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.