Ankihub add-on “encountered a problem”

Hi there!

I have am subscriber of Ankihub, currently on version 24.11 of Anki.

Unfortunately, when I open Anki it says, “Anki encountered a problem. Please follow the troubleshooting steps.” “Add-ons possibly involved: AnkiHub”

I have tried to uninstall the add-on, re download, safe start up, remove AnkiHub decks etc - But nothing has worked. I am able to use Anki but do not have the AnkiHub toolbar/features.

Any help would be greatly appreciated!

Hello,

Could be a few things, but let’s try the likeliest solution first:

Go ahead and delete your Ankihub add-on. This can be done by going to Tools - Add-ons - selecting the Ankihub add-on and deleting it.

From there, restart Anki.

Once you’ve done that, I’ll have you download this version of the add-on: https://ankiaddons.s3.amazonaws.com/ankihub/ankihub_latest.ankiaddon

Once you’ve done that, restart Anki again and log back into Ankihub via the add-on and let me know if that resolves your issue/s. :slight_smile:

Thank you for the assistance. Unfortunately this did not change the outcome. I received an identical pop-up upon re-opening Anki.

We’ll keep at it, then. :slight_smile:

Can you copy and paste the debug info here, so I can get a better sense of the specifics of what are transpiring?

Anki 24.11 (87ccd24e) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.0-arm64-arm-64bit

Traceback (most recent call last):
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py”, line 3291, in execute_sql
cursor.execute(sql, params or ())
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 2, and there are 1 supplied.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “aqt.progress”, line 121, in handler
File “aqt.main”, line 221, in on_window_init
File “aqt.main”, line 320, in setupProfile
File “aqt.main”, line 558, in loadProfile
File “_aqt.hooks”, line 4101, in call
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 116, in _on_profile_did_open
if not _profile_setup():
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/entry_point.py”, line 146, in _profile_setup
ankihub_db.setup_and_migrate(ankihub_db_path())
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/db/db.py”, line 91, in setup_and_migrate
migrate_ankihub_db()
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/db/db_migrations.py”, line 77, in migrate_ankihub_db
peewee_db.execute_sql(
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py”, line 3291, in execute_sql
cursor.execute(sql, params or ())
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py”, line 3059, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py”, line 192, in reraise
raise value.with_traceback(tb)
File “/Users/myname/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py”, line 3291, in execute_sql
cursor.execute(sql, params or ())
peewee.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 2, and there are 1 supplied.

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Merge Notes Merge and Duplicate notes [‘1425504015’, 2024-09-18T07:35, ‘None’, ‘’]
Advanced Browser [‘874215009’, 2024-10-28T03:20, ‘None’, ‘’]
AnkiHub [‘1322529746’, 0, ‘None’, ‘’]
Edit Field During Review Cloze [‘385888438’, 2024-11-16T23:23, ‘6.21’, mod]
Image Occlusion Enhanced [‘1374772155’, 2022-04-09T19:15, ‘None’, ‘’]
Quizlet to Anki 21 Importer with audio support [‘1362209126’, 2024-11-15T22:33, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-30T13:43, ‘None’, ‘’]
Special Fields [‘1102281552’, 2024-10-27T04:51, ‘None’, ‘’]
Symbols As You Type [‘2040501954’, 2025-01-06T08:55, ‘None’, ‘’]
True Retention [‘613684242’, 2017-11-20T09:43, ‘None’, ‘’]
batch change fonts [‘1479177943’, 2023-03-20T07:10, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1102281552 1322529746 1362209126 1374772155 1425504015 1479177943 1771074083 2040501954 385888438 613684242 874215009

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

Please try the following steps:

  • Go to the /Users/myname/Library/Application Support/AnkiHub folder. The Library folder is hidden by default, but can be revealed in Finder by holding down the option key while clicking on the Go menu.
  • Open each subfolder there (you should see at least one with a random name) and delete the ankihub.db file.
  • Restart Anki
3 Likes

That worked! Thank you for the help!

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