Oops…
If you think this should work you can reproduce the problem, you should consider reporting this to the Trac team.
Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.
Python Traceback
-
File "/usr/lib/python2.5/site-packages/trac/web/main.py",
line 423, in
_dispatch_request
Code fragment:
try:
if not env and env_error:
raise HTTPInternalError(env_error)
try:
dispatcher = RequestDispatcher(env)
dispatcher.dispatch(req)
except RequestDone:
pass
resp = req._response or []
except HTTPException, e:
Local variables:
Name Value after [u' except RequestDone:', u' pass', u' resp = ...
before [u' try:', u' if not env and env_error:', u' raise ...
dispatcher <trac.web.main.RequestDispatcher object at 0x2bd1510>
e KeyError('T',)
env <trac.env.Environment object at 0x2767110>
env_error None
exc_info (<type 'exceptions.KeyError'>, KeyError('T',), <traceback object at ...
filename '/usr/lib/python2.5/site-packages/trac/web/main.py'
frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ...
has_admin True
line u' dispatcher.dispatch(req)'
lineno 422
message u"KeyError: 'T'"
req <Request "GET u'/report'">
resp []
tb <traceback object at 0x2deb5f0>
tb_hide None
traceback 'Traceback (most recent call last):\n File ...
-
File "/usr/lib/python2.5/site-packages/trac/web/main.py",
line 173, in
dispatch
Code fragment:
if not req.path_info or req.path_info == '/':
chosen_handler = self.default_handler
# pre-process any incoming request, whether a handler
# was found or not
chosen_handler = self._pre_process_request(req,
chosen_handler)
except TracError, e:
raise HTTPInternalError(e)
if not chosen_handler:
raise HTTPNotFound('No handler matched request to %s',
req.path_info)
Local variables:
Name Value chosen_handler <trac.ticket.report.ReportModule object at 0x2bd1190>
chrome <trac.web.chrome.Chrome object at 0x2b14d10>
err (<type 'exceptions.KeyError'>, KeyError('T',), <traceback object at ...
handler <trac.ticket.report.ReportModule object at 0x2bd1190>
req <Request "GET u'/report'">
self <trac.web.main.RequestDispatcher object at 0x2bd1510>
-
File "/usr/lib/python2.5/site-packages/trac/web/main.py",
line 286, in
_pre_process_request
Code fragment:
req.outcookie['trac_form_token']['path'] = req.base_path or '/'
return req.outcookie['trac_form_token'].value
def _pre_process_request(self, req, chosen_handler):
for filter_ in self.filters:
chosen_handler = filter_.pre_process_request(req, chosen_handler)
return chosen_handler
def _post_process_request(self, req, *args):
nbargs = len(args)
resp = args
Local variables:
Name Value chosen_handler <trac.ticket.report.ReportModule object at 0x2bd1190>
filter_ <trac.versioncontrol.api.RepositoryManager object at 0x2bd1110>
req <Request "GET u'/report'">
self <trac.web.main.RequestDispatcher object at 0x2bd1510>
-
File "/usr/lib/python2.5/site-packages/trac/versioncontrol/api.py",
line 86, in
pre_process_request
Code fragment:
def pre_process_request(self, req, handler):
from trac.web.chrome import Chrome, add_warning
if handler is not Chrome(self.env):
try:
self.get_repository(req.authname).sync()
except TracError, e:
add_warning(req, _("Can't synchronize with the repository "
"(%(error)s). Look in the Trac log for more "
"information.", error=e.message))
Local variables:
Name Value Chrome <class 'trac.web.chrome.Chrome'>
add_warning <function add_warning at 0x272df50>
handler <trac.ticket.report.ReportModule object at 0x2bd1190>
req <Request "GET u'/report'">
self <trac.versioncontrol.api.RepositoryManager object at 0x2bd1110>
-
File "/usr/lib/python2.5/site-packages/trac/versioncontrol/cache.py",
line 200, in
sync
Code fragment:
return
# 1.2. now *only* one process was able to get there
# (i.e. there *shouldn't* be any race condition here)
for path,kind,action,bpath,brev in cset.get_changes():
self.log.debug("Caching node change in [%s]: %s"
% (next_youngest,
(path,kind,action,bpath,brev)))
kind = kindmap[kind]
action = actionmap[action]
Local variables:
Name Value action 'E'
actionmap {'edit': 'E', 'add': 'A', 'move': 'M', 'copy': 'C', 'delete': 'D'}
authz <trac.versioncontrol.api.Authorizer object at 0x2de1990>
bpath 'unified_python/ubuntu/bin/python'
brev u'43e32dcda4265a5fa4f99160b6d806bc0646d286'
cset <tracext.git.git_fs.GitChangeset object at 0x2de7b50>
cursor <trac.db.util.IterableCursor object at 0x2da76e0>
db <trac.db.pool.PooledConnection object at 0x2da98c0>
feedback None
key 'youngest_rev'
kind 'F'
kindmap {'file': 'F', 'dir': 'D'}
metadata {u'youngest_rev': u'43e32dcda4265a5fa4f99160b6d806bc0646d286', ...
name u'youngest_rev'
next_youngest '9c358c0fa656ccde500652118535f85e117c1451'
path 'unified_python/ubuntu/bin/python'
repos_youngest 'ff7056f47c92026d8686f889d0452b47706ebf8b'
repository_dir u'git:/git'
self <tracext.git.git_fs.CachedRepository2 object at 0x2de19d0>
value u'43e32dcda4265a5fa4f99160b6d806bc0646d286'
-
File "/usr/lib/python2.5/site-packages/tracext/git/git_fs.py",
line 432, in
get_changes
Code fragment:
kind = Node.FILE
if mode2.startswith('04') or mode1.startswith('04'):
kind = Node.DIRECTORY
action = GitChangeset.action_map[action[0]]
if action == Changeset.ADD:
p_path = ''
p_rev = None
Local variables:
Name Value action 'T'
kind 'file'
mode1 '100755'
mode2 '120000'
obj1 '8ecc845b9cef20cfd19a60c52b3f3f78a4d9b22e'
obj2 'e936789f738859bf8381f595a84e82712461ff8a'
p_path 'unified_python/ubuntu/bin/python-config'
p_rev u'43e32dcda4265a5fa4f99160b6d806bc0646d286'
parent u'43e32dcda4265a5fa4f99160b6d806bc0646d286'
path 'unified_python/ubuntu/bin/python-config'
path1 'unified_python/ubuntu/bin/python-config'
path2 None
paths_seen set(['unified_python/ubuntu/bin/2to3', 'unified_python/ubuntu/bin/idle', ...
self <tracext.git.git_fs.GitChangeset object at 0x2de7b50>
System Information:
User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101230 Firefox/3.6.13
Trac: | 0.11.1 |
---|---|
Python: | 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] |
setuptools: | 0.6c11 |
SQLite: | 3.5.9 |
pysqlite: | 2.4.1 |
Genshi: | 0.5.1 |
Pygments: | 0.10 |
GIT: | 1.5.6.5 |
jQuery: | 1.2.6 |
TracGuide — The Trac User and Administration Guide