Modify ↓
#14347 closed defect (duplicate)
PlantUMLMacro fails to load with Python 3.10
| Reported by: | Hendrik Fuß | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | PlantUmlMacro |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 1.6 |
Description
After installing PlantUMLMacro as egg under /var/www/trac/plugins, the plugin does not show up on the plugins page.
In trac.log I found an error message:
2024-07-11 09:32:47,159 Trac[loader] DEBUG: Adding plugin "TracPlantUml 2.3.dev0" from "/var/www/trac/plugins/TracPlantUml-2.3.dev0-py3.10.egg"
2024-07-11 09:32:47,160 Trac[loader] DEBUG: Adding plugin "TracChildTickets 2.6.0.dev0" from "/var/www/trac/plugins/TracChildTickets-2.6.0.dev0-py3.10.egg"
2024-07-11 09:32:47,171 Trac[loader] DEBUG: Loading plugin "childtickets.admin" from "/var/www/trac/plugins/TracChildTickets-2.6.0.dev0-py3.10.egg"
2024-07-11 09:32:47,198 Trac[loader] DEBUG: Loading plugin "childtickets.web_ui" from "/var/www/trac/plugins/TracChildTickets-2.6.0.dev0-py3.10.egg"
2024-07-11 09:32:47,210 Trac[loader] DEBUG: Loading plugin "plantuml.macro" from "/var/www/trac/plugins/TracPlantUml-2.3.dev0-py3.10.egg"
2024-07-11 09:32:47,214 Trac[loader] ERROR: Skipping "plantuml.macro = plantuml.macro":
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 importlib._bootstrap>", line 431, in spec_from_loader
File "<frozen importlib._bootstrap_external>", line 741, in spec_from_file_location
File "<frozen zipimport>", line 229, in get_filename
File "<frozen zipimport>", line 767, in _get_module_code
File "<frozen zipimport>", line 696, in _compile_source
File "/var/www/trac/plugins/TracPlantUml-2.3.dev0-py3.10.egg/plantuml/macro.py", line 115
except NoSuchNode, e:
^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized (macro.py, line 115)
Using Python version:
$ python3 --version Python 3.10.12
I'm using trac 1.5.3, which is the latest version available from my package repository. I will try upgrading to 1.6, but I guess macro.py is likely to fail on both.
Attachments (0)
Change History (2)
comment:1 Changed 16 months ago by
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
comment:2 Changed 16 months ago by
Fixed in [18647]. Please try the latest and feel free to reopen it or create an new ticket if you encounter an issue.
Note: See
TracTickets for help on using
tickets.



A duplicate of #14337. This plugin is not compatible with Python 3 yet.