Before the error happened, I was…
Opening Anki
Error message (don't change this)
Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631
Traceback (most recent call last):
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\lib\peewee.py", line 3291, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: no such table: notetypes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt.main", line 378, in onOpenProfile
File "aqt.main", line 529, in loadProfile
File "decorator", line 232, in fun
File "anki.hooks", line 89, in decorator_wrapper
File "anki.hooks", line 84, in repl
File "aqt.main", line 1069, in maybe_auto_sync_on_open_close
File "decorator", line 232, in fun
File "anki.hooks", line 89, in decorator_wrapper
File "anki.hooks", line 86, in repl
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\threading_utils.py", line 26, in wrapper
return func(*args, **kwargs)
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 70, in _rate_limited
_old(*args, **kwargs)
File "decorator", line 232, in fun
File "anki.hooks", line 89, in decorator_wrapper
File "anki.hooks", line 86, in repl
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 117, in _on_ankiweb_sync
sync_with_ankiweb(future_with_exception(e))
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 99, in sync_with_ankiweb
future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 114, in _on_ankiweb_sync
_maybe_sync_with_ankihub(on_done=sync_with_ankiweb)
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 125, in _maybe_sync_with_ankihub
on_done(future_with_result(None))
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 109, in sync_with_ankiweb
original_sync_collection_and_media(
File "aqt.main", line 1064, in _sync_collection_and_media
File "aqt.sync", line 127, in sync_collection
File "aqt.taskman", line 108, in with_progress
File "aqt.taskman", line 69, in run_in_background
File "aqt.taskman", line 142, in _on_closures_pending
File "aqt.taskman", line 86, in <lambda>
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\entry_point.py", line 103, in <lambda>
raise_exception, on_done=lambda future: future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "concurrent.futures.thread", line 58, in run
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\entry_point.py", line 100, in raise_exception
raise exception
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\entry_point.py", line 94, in maybe_call_on_profile_did_open
_on_profile_did_open()
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\entry_point.py", line 116, in _on_profile_did_open
if not _profile_setup():
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\entry_point.py", line 146, in _profile_setup
ankihub_db.setup_and_migrate(ankihub_db_path())
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 86, in setup_and_migrate
migrate_ankihub_db()
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\db\db_migrations.py", line 142, in migrate_ankihub_db
peewee_db.execute_sql("ALTER TABLE notetypes RENAME TO temp_notetypes;")
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\lib\peewee.py", line 3291, in execute_sql
cursor.execute(sql, params or ())
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\lib\peewee.py", line 3059, in __exit__
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\lib\peewee.py", line 192, in reraise
raise value.with_traceback(tb)
File "C:\Users\liamj\AppData\Roaming\Anki2\addons21\1322529746\lib\peewee.py", line 3291, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: no such table: notetypes