Modify

Opened 11 months ago

Last modified 11 months 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

     
    1515
    1616from pkg_resources import resource_filename
    1717
    18 from trac.util.html import tag
     18from trac.util.html import html as tag
    1919
    2020from trac.config import BoolOption, IntOption
    2121from trac.core import implements, Component, TracError
  • tracwikiextras/color.py

     
    1212"""Decorate wiki text with colors.
    1313"""
    1414
    15 from trac.util.html import Markup, tag
     15from trac.util.html import Markup, html as tag
    1616
    1717from trac.core import implements, Component
    1818from trac.util.compat import cleandoc
  • tracwikiextras/icons.py

     
    4848
    4949from pkg_resources import resource_filename
    5050
    51 from trac.util.html import tag
     51from trac.util.html import html as tag
    5252
    5353from trac.config import BoolOption, ConfigSection, IntOption, ListOption
    5454from trac.core import implements, Component
  • tracwikiextras/phrases.py

     
    2222
    2323from pkg_resources import resource_filename
    2424
    25 from trac.util.html import Markup, tag
     25from trac.util.html import Markup, html as tag
    2626
    2727from trac.config import ListOption, ConfigSection
    2828from trac.core import implements, Component
  • tracwikiextras/unc_paths.py

     
    99#
    1010# Author: Christian Boos <cboos@neuf.fr>
    1111
    12 from trac.util.html import tag
     12from trac.util.html import html as tag
    1313
    1414from trac.core import implements, Component
    1515from trac.wiki import IWikiSyntaxProvider
  • tracwikiextras/util.py

     
    1616import re
    1717import string
    1818
    19 from trac.util.html import Markup, tag
     19from trac.util.html import Markup, html as tag
    2020
    2121from trac.util import arity
    2222from 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)

Change History (2)

comment:1 Changed 11 months ago by Ryan J Ollos

Similar to #11953.

Please be sure to attach any proposed changes as a single unified diff patch (SubmittingPatches).

comment:2 Changed 11 months ago by Ryan J Ollos

In 17033:

TracWikiExtras 1.3.1dev: Make imports compatible with Trac < 1.0.2

Refs #13374.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Mikael Relbe.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.