Modify ↓
Opened 7 years ago
Last modified 7 years ago
#13374 new defect
AssertionError: this version only supports 100 named groups
Reported by: | ntmlod | Owned by: | Mikael Relbe |
---|---|---|---|
Priority: | normal | Component: | WikiExtrasPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
I made small fixes related to our not-up-to-date installation (1.0.1).
-
tracwikiextras/boxes.py
15 15 16 16 from pkg_resources import resource_filename 17 17 18 from trac.util.html import tag18 from trac.util.html import html as tag 19 19 20 20 from trac.config import BoolOption, IntOption 21 21 from trac.core import implements, Component, TracError -
tracwikiextras/color.py
12 12 """Decorate wiki text with colors. 13 13 """ 14 14 15 from trac.util.html import Markup, tag15 from trac.util.html import Markup, html as tag 16 16 17 17 from trac.core import implements, Component 18 18 from trac.util.compat import cleandoc -
tracwikiextras/icons.py
48 48 49 49 from pkg_resources import resource_filename 50 50 51 from trac.util.html import tag51 from trac.util.html import html as tag 52 52 53 53 from trac.config import BoolOption, ConfigSection, IntOption, ListOption 54 54 from trac.core import implements, Component -
tracwikiextras/phrases.py
22 22 23 23 from pkg_resources import resource_filename 24 24 25 from trac.util.html import Markup, tag25 from trac.util.html import Markup, html as tag 26 26 27 27 from trac.config import ListOption, ConfigSection 28 28 from trac.core import implements, Component -
tracwikiextras/unc_paths.py
9 9 # 10 10 # Author: Christian Boos <cboos@neuf.fr> 11 11 12 from trac.util.html import tag12 from trac.util.html import html as tag 13 13 14 14 from trac.core import implements, Component 15 15 from trac.wiki import IWikiSyntaxProvider -
tracwikiextras/util.py
16 16 import re 17 17 import string 18 18 19 from trac.util.html import Markup, tag19 from trac.util.html import Markup, html as tag 20 20 21 21 from trac.util import arity 22 22 from trac.util.compat import sorted
Then our Trac instance crash on any page.
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 497, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 214, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.7/site-packages/trac/wiki/web_api.py", line 52, in process_request rendered = format_to(self.env, flavor, context, text, **options) File "/usr/lib/python2.7/site-packages/trac/wiki/formatter.py", line 1539, in format_to return format_to_html(env, context, wikidom, **options) File "/usr/lib/python2.7/site-packages/trac/wiki/formatter.py", line 1546, in format_to_html return HtmlFormatter(env, context, wikidom).generate(escape_newlines) File "/usr/lib/python2.7/site-packages/trac/wiki/formatter.py", line 1501, in generate escape_newlines) File "/usr/lib/python2.7/site-packages/trac/wiki/formatter.py", line 1283, in format result = re.sub(self.wikiparser.rules, self.replace, line) File "/usr/lib/python2.7/site-packages/trac/wiki/parser.py", line 176, in rules self._prepare_rules() File "/usr/lib/python2.7/site-packages/trac/wiki/parser.py", line 205, in _prepare_rules rules = re.compile('(?:' + '|'.join(syntax) + ')', re.UNICODE) File "/usr/lib64/python2.7/re.py", line 190, in compile return _compile(pattern, flags) File "/usr/lib64/python2.7/re.py", line 240, in _compile p = sre_compile.compile(pattern, flags) File "/usr/lib64/python2.7/sre_compile.py", line 509, in compile "sorry, but this version only supports 100 named groups" AssertionError: sorry, but this version only supports 100 named groups
After some tests, the error occurs when tracwikiextras.unc_paths.*
is enabled.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Similar to #11953.
Please be sure to attach any proposed changes as a single unified diff patch (SubmittingPatches).