I get an error message with AnkiHub add-ons when I open Anki and Anki closes unexpectedly with problem messages after I do some cards

I get an error message with AnkiHub add-ons when I open Anki and Anki closes unexpectedly after I do a few cards. I had some files in my trashcan that were related to Anki and thought I deleted them mistakenly, so I added them back to my computer’s files and the next day I started getting the error message. I deleted most of them again but the problem persists. There are 2 that I do not know where they are or what they are called, so I don’t know what to do. I believe all of the files were titled by numbers. I deleted Anki and redownloaded and the problem persists. I have intel version because I have an older Mac bought in 2019. I pasted the debug info.

Anki 25.02 (038d85b1) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-13.7.4-x86_64-i386-64bit

Error in sys.excepthook:
Traceback (most recent call last):
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/lib/structlog/_base.py”, line 217, in _proxy_to_logger
return getattr(self._logger, method_name)(*args, **kw)
File “logging”, line 1446, in info
File “logging”, line 1589, in _log
File “logging”, line 1599, in handle
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/lib/sentry_sdk/integrations/logging.py”, line 96, in sentry_patched_callhandlers
return old_callhandlers(self, record)
File “logging”, line 1661, in callHandlers
File “logging”, line 952, in handle
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746 10-20-59-188/settings.py”, line 779, in emit
self.flush(in_background=True)
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746 10-20-59-188/settings.py”, line 785, in flush
feature_flags = config.get_feature_flags()
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746 10-20-59-188/settings.py”, line 323, in get_feature_flags
return self._private_config.feature_flags
AttributeError: ‘NoneType’ object has no attribute ‘feature_flags’

Original exception was:
Traceback (most recent call last):
File “aqt.progress”, line 121, in handler
File “aqt.main”, line 231, in on_window_init
File “aqt.main”, line 330, in setupProfile
File “aqt.main”, line 568, in loadProfile
File “_aqt.hooks”, line 4101, in call
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 127, in _on_profile_did_open
_general_setup()
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 215, in _general_setup
LOGGER.info(“Set up deck browser”)
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/lib/structlog/_native.py”, line 134, in meth
return self._proxy_to_logger(name, event, **kw)
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/lib/structlog/_base.py”, line 217, in _proxy_to_logger
return getattr(self._logger, method_name)(*args, **kw)
File “logging”, line 1446, in info
File “logging”, line 1589, in _log
File “logging”, line 1599, in handle
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746/lib/sentry_sdk/integrations/logging.py”, line 96, in sentry_patched_callhandlers
return old_callhandlers(self, record)
File “logging”, line 1661, in callHandlers
File “logging”, line 952, in handle
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746 10-20-59-188/settings.py”, line 779, in emit
self.flush(in_background=True)
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746 10-20-59-188/settings.py”, line 785, in flush
feature_flags = config.get_feature_flags()
File “/Users/eric/Library/Application Support/Anki2/addons21/1322529746 10-20-59-188/settings.py”, line 323, in get_feature_flags
return self._private_config.feature_flags
AttributeError: ‘NoneType’ object has no attribute ‘feature_flags’
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on [‘0amboss_addon’, 2024-08-05T10:24, ‘None’, mod]
AnKing Note Types Easy Customization [‘952691989’, 2025-03-25T17:57, ‘None’, mod]
AnkiConnect [‘2055492159’, 2025-02-25T17:57, ‘None’, mod]
AnkiHub [‘1322529746 10-20-59-188’, 2025-03-24T14:32, ‘None’, ‘’]
AnkiHub [‘1322529746 11-02-52-477’, 2024-12-02T15:00, ‘None’, ‘’]
AnkiHub [‘1322529746 14-04-32-911’, 2025-01-30T05:46, ‘None’, ‘’]
AnkiHub [‘1322529746 15-11-10-759’, 2025-01-09T14:18, ‘None’, ‘’]
AnkiHub [‘1322529746 15-36-39-402’, 2025-02-14T06:23, ‘None’, ‘’]
AnkiHub [‘1322529746 15-37-46-461’, 2024-10-28T12:10, ‘None’, ‘’]
AnkiHub [‘1322529746 15-51-56-904’, 2024-09-02T13:59, ‘None’, ‘’]
AnkiHub [‘1322529746 16-29-56-007’, 2025-02-25T14:04, ‘None’, ‘’]
AnkiHub [‘1322529746 16-31-16-289’, 2025-03-17T12:25, ‘None’, ‘’]
AnkiHub [‘1322529746 17-17-56-246’, 2024-11-12T12:38, ‘None’, ‘’]
AnkiHub [‘1322529746’, 2025-03-27T08:38, ‘None’, ‘’]
Contanki - Controller Support for Anki beta [‘1898790263’, 2024-02-29T20:22, ‘v1.0.2’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-29T21:43, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1322529746 1771074083 1898790263 2055492159 952691989

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

What happened here? Could you reinstall Ankihub and see if that works

1 Like