Modify ↓
#1952 closed defect (fixed)
trac-admin /var/trac/myrepo upgrade fails with "ImportError: No module named trac.Browser"
Reported by: | 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: |
Description
$ 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__ load_components(self) File "/usr/lib/python2.3/site-packages/trac/loader.py", line 81, in load_components load_component(module) 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 , 19 years ago
comment:2 by , 19 years ago
Milestone: | → 0.9 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Sorry, I messed up a little bit my commit r2110. To be fixed in 2 minutes.
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Should be fixed in r2114. Sorry for the trouble.
comment:5 by , 19 years ago
I've added a note to the TracDev/ReleaseChecklist page, as code refactoring has created several similar issues with trac-admin
.
Note:
See TracTickets
for help on using tickets.
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.