Get an Error on opening Anki due to new AnkiHub add-on

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-12.5.1-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-22 09:41:26
Add-ons possibly involved: ⁨AnkiHub⁩

Caught exception:
Traceback (most recent call last):
File “aqt.progress”, line 118, in handler
File “aqt.main”, line 218, in on_window_init
File “aqt.main”, line 317, in setupProfile
File “aqt.main”, line 496, in loadProfile
File “_aqt.hooks”, line 4101, in call
File “/Users/usamahhijazi/Library/Application Support/Anki2/addons21/1322529746/”, line 55, in _on_profile_did_open
if not _profile_setup():
File “/Users/usamahhijazi/Library/Application Support/Anki2/addons21/1322529746/”, line 76, in _profile_setup
if not setup_profile_data_folder():
File “/Users/usamahhijazi/Library/Application Support/Anki2/addons21/1322529746/”, line 395, in setup_profile_data_folder
if not _maybe_migrate_profile_data_from_old_location():
File “/Users/usamahhijazi/Library/Application Support/Anki2/addons21/1322529746/”, line 468, in _maybe_migrate_profile_data_from_old_location
if not _profile_data_exists_at_old_location():
File “/Users/usamahhijazi/Library/Application Support/Anki2/addons21/1322529746/”, line 459, in _profile_data_exists_at_old_location
result = (user_files_path() / PRIVATE_CONFIG_FILENAME).exists()
File “pathlib”, line 1424, in exists
File “pathlib”, line 1232, in stat
PermissionError: [Errno 13] Permission denied: ‘/Users/usamahhijazi/Library/Application Support/Anki2/addons21/1322529746/user_files/.private_config.json’

Please try the steps:

  1. Locate the add-on’s folder by going to Tools > Add-ons, selecting AnkiHub and clicking View Files.
  2. Close Anki.
  3. Delete the .private_config.json file under the user_files folder and any subfolders there.
  4. Start Anki again. You’ll need to log in again to your AnkiHub account.

Hi there. Thanks for the reply. Unfortunately, I can’t find the file you seem to be talking about.

It’s under the user_files folder when you open the add-on’s folder.

Realised I didnt have permission to access the user_files folder, so I edited permissions and gave myself access and everything started to work. Thanks for your help

1 Like