Error removing optional tags

Just prior to the error, I experimented with adding the PSCOM set of optional tags for the AnKing Step 1/2 deck. I synced them to my local Anki via AnkiHub before deciding to remove them by unchecking the optional tags in the AnkiHub web app. The next time I attempted to sync with AnkiHub I received this error. I have attempted to remove unused tags which did not resolve the error.

Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.1-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-08-09 08:57:23
Add-ons possibly involved: <U+2068>AnkiHub<U+2069>

Caught exception:
Traceback (most recent call last):
  File "<string>", line 28, in from_dict
  File "<string>", line 28, in <dictcomp>
  File "<string>", line 9, in from_dict
mashumaro.exceptions.MissingField: Field "ah_did" of type UUID is missing in DeckExtensionConfig instance

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aqt.progress", line 118, in handler
  File "aqt.main", line 217, in on_window_init
  File "aqt.main", line 316, in setupProfile
  File "aqt.main", line 496, in loadProfile
  File "_aqt.hooks", line 3881, in __call__
  File "/Users/username/Library/Application Support/Anki2/addons21/1322529746/entry_point.py", line 51, in _on_profile_did_open
    if not _profile_setup():
  File "/Users/username/Library/Application Support/Anki2/addons21/1322529746/entry_point.py", line 74, in _profile_setup
    config.setup_private_config()
  File "/Users/username/Library/Application Support/Anki2/addons21/1322529746/settings.py", line 156, in setup_private_config
    self._private_config = self._load_private_config()
  File "/Users/username/Library/Application Support/Anki2/addons21/1322529746/settings.py", line 166, in _load_private_config
    result = PrivateConfig.from_dict(private_config_dict)
  File "<string>", line 30, in from_dict
mashumaro.exceptions.InvalidFieldValue: Field "deck_extensions" of type Dict[int, DeckExtensionConfig] in PrivateConfig has invalid value {'119': {'ah_did': 'e77aedfe-a636-40e2-8169-2fce2673187e', 'description': '', 'latest_update': None, 'name': 'PSCOM', 'owner_id': 9874, 'tag_group_name': 'PSCOM'}}

Can you shift-click on Anki → go to tools → addons → ankihub → update to the latest version. Then see if it still persists

This resolved the error. Thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.