trac-hacks / tracstats

Project and source code statistics plugin for Trac.
http://trac-hacks.org/wiki/TracStatsPlugin
Other
20 stars 13 forks source link

python-3/Trac-1.6: invalid syntax in web_ui.py #53

Closed strk closed 1 week ago

strk commented 1 week ago
ERROR: Skipping "tracstats.web_ui = tracstats.web_ui":
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/trac/loader.py", line 80, in _load_eggs
    entry.load(require=True)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.9/dist-packages/tracstats/web_ui.py", line 192
    raise ValueError, "unknown path '%s'" % path
                    ^
SyntaxError: invalid syntax (web_ui.py, line 192)
stoecker commented 1 week ago

Install the python3 Trac1.6 code. Seems you're running something older.