Modify ↓
Opened 14 years ago
Closed 14 years ago
#9652 closed defect (cantfix)
error: redefinition of group name u'it_changeset' as group 31; was group 22
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Trac detected an internal error: error: redefinition of group name u'it_changeset' as group 31; was group 22
How to Reproduce
While doing a GET operation on /browser
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'path': '/'}
User agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
System Information
Trac | 0.12
|
CustomFieldAdmin | 0.2.2
|
Docutils | 0.6
|
Genshi | 0.6
|
mod_wsgi | 2.8 (WSGIProcessGroup dev WSGIApplicationGroup %{GLOBAL})
|
Pygments | 1.2.2
|
pysqlite | 2.4.1
|
Python | 2.6.5 (r265:79063, Apr 16 2010, 14:15:55) [GCC 4.4.3]
|
pytz | 2010b
|
setuptools | 0.6
|
SQLite | 3.6.22
|
Subversion | 1.6.6 (r40053)
|
jQuery | 1.4.2
|
Enabled Plugins
BranchTimeline | N/A
|
HudsonTrac | 0.3
|
icalexporter | 0.1
|
TracAccountManager | 0.2.1dev
|
TracAdvParseArgsPlugin | 0.4
|
Tracchildtickets | 1.0.3
|
TracCustomFieldAdmin | 0.2.2
|
TracFlashGantt | 1.0
|
Python Traceback
Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 513, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 256, in dispatch content_type) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/chrome.py", line 844, in render_template stream.render(method, doctype=doctype, out=buffer) File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 183, in render return encode(generator, method=method, encoding=encoding, out=out) File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 58, in encode for chunk in iterator: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 339, in __call__ for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 826, in __call__ for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 670, in __call__ for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 771, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/output.py", line 586, in __call__ for ev in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure for event in stream: File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/chrome.py", line 945, in _strip_accesskeys for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure for event in stream: File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/chrome.py", line 934, in _generate for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 327, in _match for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/path.py", line 588, in _generate subevent = next() File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 316, in _strip event = next() File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 545, in _flatten for kind, data, pos in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 288, in _ensure for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/path.py", line 588, in _generate subevent = next() File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 605, in _include for event in stream: File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py", line 316, in _strip event = next() File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 565, in _flatten result = _eval_expr(data, ctxt, vars) File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py", line 277, in _eval_expr retval = expr.evaluate(ctxt) File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py", line 178, in evaluate return eval(self.code, _globals, {'__data__': data}) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/versioncontrol/templates/dir_entries.html", line 29, in <Expression u'wiki_to_oneliner(chgset_context, change.message, shorten=True)'> <py:when test="wiki_format_messages">${wiki_to_oneliner(chgset_context, change.message, shorten=True)}</py:when> File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1504, in format_to_oneliner return InlineHtmlFormatter(env, context, wikidom).generate(shorten) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1480, in generate shorten) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1338, in format result = re.sub(self.wikiparser.rules, self.replace, result) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/parser.py", line 172, in _get_rules self._prepare_rules() File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/parser.py", line 202, in _prepare_rules rules = re.compile('(?:' + '|'.join(syntax) + ')', re.UNICODE) File "/usr/lib/python2.6/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib/python2.6/re.py", line 245, in _compile raise error, v # invalid expression error: redefinition of group name u'it_changeset' as group 31; was group 22
a new bug report describing the problem and explain how to reproduce it.
- Python Traceback
Most recent call last:
* File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/versioncontrol/templates/dir_entries.html", line 29, in <Expression u'wiki_to_oneliner(chgset_context, change.message, shorten=True)'> Code fragment: Line 24 ${chgset_view and dateinfo(change.date) or '–'} 25 </td> 26 <td class="author">${chgset_view and authorinfo_short(change.author) or '–'}</td> 27 <td class="change" py:choose=""> 28 <py:when test="chgset_view" py:choose=""> 29 <py:when test="wiki_format_messages">${wiki_to_oneliner(chgset_context, change.message, shorten=True)}</py:when> 30 <py:otherwise>${shorten_line(change.message)}</py:otherwise> 31 </py:when> 32 <py:otherwise>–</py:otherwise> 33 </td> 34 </tr> Local variables: Name Value __data__ [{'chgset_context': <Context <Resource u'repository, source:/@9905'> - ... * File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1504, in format_to_oneliner Code fragment: Line 1499 def format_to_oneliner(env, context, wikidom, shorten=None): 1500 if not wikidom: 1501 return Markup() 1502 if shorten is None: 1503 shorten = context.get_hint('shorten_lines', False) 1504 return InlineHtmlFormatter(env, context, wikidom).generate(shorten) 1505 1506 def extract_link(env, context, wikidom): 1507 if not wikidom: 1508 return Markup() 1509 return LinkFormatter(env, context).match(wikidom) Local variables: Name Value context <Context <Resource u'repository, source:/@9905'> - <Resource u'repository, ... env <trac.env.Environment object at 0x7fc18c242d90> shorten True wikidom u'Adicionando ao repositorio' * File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1480, in generate Code fragment: Line 1475 have been emitted. 1476 """ 1477 # FIXME: compatibility code only for now 1478 out = StringIO() 1479 OneLinerFormatter(self.env, self.context).format(self.wikidom, out, 1480 shorten) 1481 return Markup(out.getvalue()) 1482 1483 1484 def format_to(env, flavor, context, wikidom, **options): 1485 if flavor is None: Local variables: Name Value out <StringIO.StringIO instance at 0x7fc18c2829e0> self <trac.wiki.formatter.InlineHtmlFormatter object at 0x7fc18c26eed0> shorten True * File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1338, in format Code fragment: Line 1333 result = buf.getvalue()[:-len(os.linesep)] 1334 1335 if shorten: 1336 result = shorten_line(result) 1337 1338 result = re.sub(self.wikiparser.rules, self.replace, result) 1339 result = result.replace('[...]', u'[\u2026]') 1340 if result.endswith('...'): 1341 result = result[:-3] + u'\u2026' 1342 1343 self.out.write(result) Local variables: Name Value buf <StringIO.StringIO instance at 0x7fc18c282b00> in_code_block 0 line u'Adicionando ao repositorio' out <StringIO.StringIO instance at 0x7fc18c2829e0> processor None result u'Adicionando ao repositorio' self <trac.wiki.formatter.OneLinerFormatter object at 0x7fc18c26ef50> shorten True text u'Adicionando ao repositorio' * File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/parser.py", line 172, in _get_rules Code fragment: Line 167 self._link_resolvers = None 168 self._helper_patterns = None 169 self._external_handlers = None 170 171 def _get_rules(self): 172 self._prepare_rules() 173 return self._compiled_rules 174 rules = property(_get_rules) 175 176 def _get_helper_patterns(self): 177 self._prepare_rules() Local variables: Name Value self <trac.wiki.parser.WikiParser object at 0x7fc18c26ee90> * File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/parser.py", line 202, in _prepare_rules Code fragment: Line 197 i += 1 198 syntax += self._post_rules[:] 199 helper_re = re.compile(r'\?P<([a-z\d_]+)>') 200 for rule in syntax: 201 helpers += helper_re.findall(rule)[1:] 202 rules = re.compile('(?:' + '|'.join(syntax) + ')', re.UNICODE) 203 self._external_handlers = handlers 204 self._helper_patterns = helpers 205 self._compiled_rules = rules 206 207 def _get_link_resolvers(self): Local variables: Name Value WikiSystem <class 'trac.wiki.api.WikiSystem'> handler <function <lambda> at 0x7fc18c2871b8> handlers {'i1': <function wikipagename_with_label_link at 0x7fc18c271de8>, 'i0': ... helper_re <_sre.SRE_Pattern object at 0x7fc18c26c130> helpers ['inline', 'inline2', u'wiki_page', u'wiki_label', 'ifl_page', ... i 8 regexp '!?\\[(?P<it_changeset>[a-zA-Z.+-]*?\\s*)(?:\\d+|[a-fA-F\\d]{8,})(?:/[^\\]] ... resolver <BranchTimeline.BranchesTimelineModule object at 0x7fc18d355690> rule '(?P<table_cell>!?(?P<table_cell_sep>=?(?:\\|\\|)+=?)(?P<table_cell_last>\\ ... self <trac.wiki.parser.WikiParser object at 0x7fc18c26ee90> syntax ["(?P<bolditalic>!?''''')", "(?P<bold>!?''')", '(?P<bold_wc>!?\\*\\*)', ... * File "/usr/lib/python2.6/re.py", line 190, in compile Code fragment: Line 185 Empty matches are included in the result.""" 186 return _compile(pattern, flags).finditer(string) 187 188 def compile(pattern, flags=0): 189 "Compile a regular expression pattern, returning a pattern object." 190 return _compile(pattern, flags) 191 192 def purge(): 193 "Clear the regular expression cache" 194 _cache.clear() 195 _cache_repl.clear() Local variables: Name Value flags 32 pattern u'(?:(?P<bolditalic>!?\'\'\'\'\')|(?P<bold>!?\'\'\')|(?P<bold_wc>!?\\*\\*)| ... * File "/usr/lib/python2.6/re.py", line 245, in _compile Code fragment: Line 240 if not sre_compile.isstring(pattern): 241 raise TypeError, "first argument must be string or compiled pattern" 242 try: 243 p = sre_compile.compile(pattern, flags) 244 except error, v: 245 raise error, v # invalid expression 246 if len(_cache) >= _MAXCACHE: 247 _cache.clear() 248 _cache[cachekey] = p 249 return p 250 Local variables: Name Value cachekey (<type 'unicode'>, ... flags 32 key (u'(?:(?P<bolditalic>!?\'\'\'\'\')|(?P<bold>!?\'\'\')|(?P<bold_wc>!?\\*\\*) ... p None pattern u'(?:(?P<bolditalic>!?\'\'\'\'\')|(?P<bold>!?\'\'\')|(?P<bold_wc>!?\\*\\*)| ... v error("redefinition of group name u'it_changeset' as group 31; was group ... File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/versioncontrol/templates/dir_entries.html", line 29, in <Expression u'wiki_to_oneliner(chgset_context, change.message, shorten=True)'> <py:when test="wiki_format_messages">${wiki_to_oneliner(chgset_context, change.message, shorten=True)}</py:when> File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1504, in format_to_oneliner return InlineHtmlFormatter(env, context, wikidom).generate(shorten) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1480, in generate shorten) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/formatter.py", line 1338, in format result = re.sub(self.wikiparser.rules, self.replace, result) File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/parser.py", line 172, in _get_rules self._prepare_rules() File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/wiki/parser.py", line 202, in _prepare_rules rules = re.compile('(?:' + '|'.join(syntax) + ')', re.UNICODE) File "/usr/lib/python2.6/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib/python2.6/re.py", line 245, in _compile raise error, v # invalid expression
System Information:
User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 Trac 0.12 CustomFieldAdmin 0.2.2 Docutils 0.6 Genshi 0.6 mod_wsgi 2.8 (WSGIProcessGroup dev WSGIApplicationGroup %{GLOBAL}) Pygments 1.2.2 pysqlite 2.4.1 Python 2.6.5 (r265:79063, Apr 16 2010, 14:15:55) [GCC 4.4.3] pytz 2010b setuptools 0.6 SQLite 3.6.22 Subversion 1.6.6 (r40053) jQuery 1.4.2
Enabled Plugins:
BranchTimeline N/A /usr/trac/dev/plugins/BranchTimeline.pyc HudsonTrac 0.3 /usr/local/lib/python2.6/dist-packages/HudsonTrac-0.3-py2.6.egg icalexporter 0.1 /usr/local/lib/python2.6/dist-packages/icalexporter-0.1-py2.6.egg TracAccountManager 0.2.1dev /usr/lib/pymodules/python2.6 TracAdvParseArgsPlugin 0.4 /usr/local/lib/python2.6/dist-packages/TracAdvParseArgsPlugin-0.4-py2.6.egg Tracchildtickets 1.0.3 /usr/local/lib/python2.6/dist-packages/Tracchildtickets-1.0.3-py2.6.egg TracCustomFieldAdmin 0.2.2 /usr/lib/pymodules/python2.6 TracFlashGantt 1.0 /usr/local/lib/python2.6/dist-packages/TracFlashGantt-1.0-py2.6.egg
Attachments (0)
Change History (1)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|---|
Resolution: | → cantfix |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Why are all the newlines missing? Is our semi-automatic error reporting broken, or was this due to copy-pasting?
Anyway, one of your plugins is defining some wiki syntax that contains a group named
it_changeset
, a name that is already used in Trac core. The last time this was reported (#8974) it was due to AgiloForScrum, but you don't seem to have that installed.Try disabling your plugins one by one, until you find the one that is causing this issue. Then, please report it to the plugin maintainer.