Edgewall Software

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1952 closed defect (fixed)

trac-admin /var/trac/myrepo upgrade fails with "ImportError: No module named trac.Browser"

Reported by: Markus Tacker <m@…> Owned by: Christian Boos
Priority: high Milestone: 0.9
Component: version control/browser Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


$ trac-admin /var/trac/myrepo upgrade

Failed to open environment. No module named trac.Browser
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 119, in env_open
    self.__env = Environment(self.envname)
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 91, in __init__
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 81, in load_components
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 110, in load_component
    raise ImportError, 'No module named ' + module_name
ImportError: No module named trac.Browser

Attachments (0)

Change History (5)

comment:1 by anonymous, 17 years ago

Are you using an RPM by any chance? I had the same problem here (missing trac.Browser) with everything, not just trac-admin last night.

It turned out that the rpm created by ./setup.py bdist_rpm was incomplete. Hadn't had a chance to investigate further, but running ./setup.py install instead produced a working installation.

comment:2 by Christian Boos, 17 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

Sorry, I messed up a little bit my commit r2110. To be fixed in 2 minutes.

comment:3 by Christian Boos, 17 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed in r2114. Sorry for the trouble.

comment:4 by Markus Tacker <m@…>, 17 years ago

@anonymous: No I use source:/trunk. @cboos: Thanks It works now.

comment:5 by Emmanuel Blot, 17 years ago

I've added a note to the TracDev/ReleaseChecklist page, as code refactoring has created several similar issues with trac-admin.

Modify Ticket

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