Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 12 years ago

#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 Emmanuel Blot, 17 years ago

Resolution: worksforme
Status: newclosed

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.

comment:2 by ra, 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 Remy Blank, 14 years ago

Thanks for the additional information. Note that TracModPython does mention this, maybe just not proeminently enough.

comment:4 by anonymous, 12 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/

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.