Opened 3 years ago
Closed 3 years ago
#13593 closed defect (duplicate)
Trac 1.5.4 and TracMercurial
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | plugin/mercurial | Version: | 1.5.4 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
Hello,
I know this is about a plugin, but it's a straighforward question about a well-known plugin, so I'm hoping that will make a difference.
Question - Is TracMercurial compatible with python ≥ 3.8 and Trac 1.5.4?
I can use python 3.10 pip to install TracMercurial 1.0.0.11.dev0 to ls /usr/local/lib/python3.10/dist-packages/, but I don't see it as a plugin in the "admin" section of trac, and I get this error in trac.log which I believe to mean that TracMercurial plugin wants python2.
File "/usr/local/lib/python3.10/dist-packages/TracMercurial-1.0.0.11.dev0-py3.10.egg/tracext/hg/backend.py", line 69
except ImportError, hg_import_error:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized (backend.py, line 69)
2023-04-21 12:49:39,747 Trac[loader] ERROR: Skipping "hg = tracext.hg.backend":
Traceback (most recent call last):
File "/usr/lib/python3.10/cmd.py", line 214, in onecmd
func = getattr(self, 'do_' + cmd)
AttributeError: 'TracAdmin' object has no attribute 'do_permission'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/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 2465, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1002, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 945, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1439, in find_spec
File "<frozen importlib._bootstrap_external>", line 1411, in _get_spec
File "<frozen zipimport>", line 170, in find_spec
File "<frozen zipimport>", line 689, in _compile_source
File "/usr/local/lib/python3.10/dist-packages/TracMercurial-1.0.0.11.dev0-py3.10.egg/tracext/hg/backend.py", line 69
except ImportError, hg_import_error:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized (backend.py, line 69)
It seems strange that I would be able to build and install TracMercurial on python3, yet it won't run on python3.
thank you,
Heather Propes
Attachments (0)
Change History (2)
comment:1 by , 3 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 3 years ago
| Component: | general → plugin/mercurial |
|---|---|
| Keywords: | trac 1.5.4 tracmercurial removed |
| Resolution: | → duplicate |
| Status: | new → closed |
| Version: | → 1.5.4 |



A duplicate of #13493.