Received an error message, after trying to download and sync for 1st time

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.2.1-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2024-07-16 10:30:36

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "aqt.taskman", line 90, in wrapped_done

  File "aqt.sync", line 119, in on_future_done

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "/Users/dr.p/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 194, in _upload_if_full_sync_triggered_by_ankihub
    aqt.sync.full_upload(mw, on_done)  # type: ignore

  File "aqt.sync", line 248, in full_upload

  File "aqt.taskman", line 92, in with_progress

  File "aqt.taskman", line 62, in run_in_background

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "aqt.taskman", line 90, in wrapped_done

  File "/Users/dr.p/Library/Application Support/Anki2/addons21/1322529746/gui/operations/subdecks.py", line 76, in _on_subdecks_updated
    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 "/Users/dr.p/Library/Application Support/Anki2/addons21/1322529746/gui/operations/subdecks.py", line 25, in <lambda>
    task=lambda: build_subdecks_and_move_cards_to_them(

  File "/Users/dr.p/Library/Application Support/Anki2/addons21/1322529746/main/subdecks.py", line 79, in build_subdecks_and_move_cards_to_them
    if aqt.mw.col.decks.card_count(did, include_subdecks=True) == 0:

  File "anki.decks", line 234, in card_count

AttributeError: 'NoneType' object has no attribute 'scalar'

Sentry link (for developers)

Hello,

Please update your Anki to the newest version: https://apps.ankiweb.net/

1 Like