Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4975 closed defect (worksforme)

cannot import name TracError

Reported by: djoseph@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

Hi,

We upgraded Ubuntu from Breezy to Dapper (6.10) and now trac is broken. I can't find anything on how to fix this for the life of me. Here is what we get:

Oops…

Trac detected an internal error:

cannot import name TracError

Traceback (most recent call last):
  File "/usr/share/trac/cgi-bin/trac.cgi", line 19, in ?
    from trac.web import cgi_frontend
  File "/usr/lib/python2.4/site-packages/trac/web/__init__.py", line 1, in ?
    from trac.web.api import *
  File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 22, in ?
    from trac.core import Interface
  File "/usr/lib/python2.4/site-packages/trac/core.py", line 19, in ?
    from trac.util import TracError
  File "/usr/lib/python2.4/site-packages/trac/util/__init__.py", line 30, in ?
    from trac.core import TracError
ImportError: cannot import name TracError

Any help is appreciated, thanks.

Attachments (0)

Change History (3)

in reply to:  description comment:1 by anonymous, 18 years ago

Forgot… we are using Python 2.4.3

comment:2 by Emmanuel Blot, 18 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

This is an installation issue, please ask for support on the MailingList.

Try uninstalling Trac with the Ubuntu package manager, verify that all Trac files have been removed on your server, and install a fresh Trac copy with the package manager.

comment:3 by Matthew Good, 18 years ago

You seem to have code from a mix of Trac versions installed. This is probably the result of installing both the Trac Ubuntu package and another version from source over top of each other. Uninstall the "trac" package, remove the trac folders from /usr/lib/python2.4/site-packages and /usr/share and then reinstall Trac fresh. As eblot mentioned support and installation issues are typically handled on the MailingList, so please send further questions about this issue there.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.