-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- I've restarted Anki to see if it helps
- I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
- I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
- I've tried to disable other add-ons to see if there are any interactions present
- My issue disappears when I hold shift while starting Anki.
- I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
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])
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working