Problem description
Just installed anki, then the plug-in.
Upon restart the plugin fails to start:
With the following info
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.6.1-arm64-arm-64bit-Mach-O
When loading Syntax Highlighting for Code:
Traceback (most recent call last):
File "/Users/svend/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 250, in loadAddons
__import__(addon.dir_name)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/Users/svend/Library/Application Support/Anki2/addons21/1463041493/__init__.py", line 15, in <module>
from . import main
File "/Users/svend/Library/Application Support/Anki2/addons21/1463041493/main.py", line 21, in <module>
from .consts import * # import addon_path
^^^^^^^^^^^^^^^^^^^^^
File "/Users/svend/Library/Application Support/Anki2/addons21/1463041493/consts.py", line 22, in <module>
addon_path = os.path.dirname(__file__).decode(sys_encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.6.1-arm64-arm-64bit-Mach-O
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Syntax Highlighting for Code ['1463041493', 2018-10-07T03:31, 'None', '']
The KING of Button Add-ons ['374005964', 2025-07-28T13:25, 'None', '']
===IDs of active AnkiWeb add-ons===
1463041493 374005964
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Problem description
Just installed anki, then the plug-in.
Upon restart the plugin fails to start:
With the following info
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-15.6.1-arm64-arm-64bit-Mach-O
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Syntax Highlighting for Code ['1463041493', 2018-10-07T03:31, 'None', '']
The KING of Button Add-ons ['374005964', 2025-07-28T13:25, 'None', '']
===IDs of active AnkiWeb add-ons===
1463041493 374005964
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])