Error - Add-on "PDF Import as a Deck to View"

Installed this Add-on and tried using the option it provides to import a PDF as a deck when the error below was displayed;

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2021-08-04 10:24:27

Caught exception:
Traceback (most recent call last):
  File "C:\Users\SamMD\AppData\Roaming\Anki2\addons21\1444113509\__init__.py", line 41, in doMyImport
    (fileFull, pageCount, pageIvl, deck_name, model, fieldList, ok) = ImportSettingsDialog().getDialogResult()
  File "C:\Users\SamMD\AppData\Roaming\Anki2\addons21\1444113509\__init__.py", line 114, in __init__
    self.populateModelList()
  File "C:\Users\SamMD\AppData\Roaming\Anki2\addons21\1444113509\__init__.py", line 156, in populateModelList
    mw.col.models.add(thismodel)
  File "anki\models.py", line 204, in add
  File "anki\_backend\generated.py", line 438, in add_notetype_legacy
  File "anki\_backend\__init__.py", line 126, in _run_command
pyo3_runtime.PanicException: assertion failed: nt.id.0 == 0

Tried restarting Anki, but issue persists when trying to use the PDF Import option.

I had the exact same error. On Anki 2.1.44 the plugin works.

1 Like

Will keep it in mind, thanks.