#4435 closed defect (worksforme)
ImportError: No module named trac
Reported by: | anonymous | Owned by: | Christopher Lenz |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend/mod_python | Version: | 0.10.3 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When running trac over apache with mod_python I am getting the following error, however tracd seems to have no issues.
Mod_python error: "PythonHandler trac.web.modpython_frontend" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch log=debug) File "/usr/lib/python2.3/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
Version used:
subversion-1.4.2 pysqlite-2.3.2 mod_python-3.2.10 httpd-2.0.59 clearsilver-0.10.4 python-2.3.6
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 14 years ago
Unzipping trac python .egg in site-packages would help. Described in http://ruk.ca/content/importerror-no-module-named-trac
comment:3 by , 14 years ago
Thanks for the additional information. Note that TracModPython does mention this, maybe just not proeminently enough.
comment:4 by , 13 years ago
In case you have recently updated your linux you can try:
easy_install -U Trac
Credits goes here: http://e-mats.org/2009/02/importerror-no-module-named-tracwebmodpython_frontend/
You have an issue with your Python path.
This is an installation issue, not a bug: Please ask for support on the MailingList or on over #IRC. Check you Apache configuration, you've probably missed the python path setting.