Submit an issue on github. Thank you for improving this toolkit with me!
Locked database: While Anki is running, your database will be locked and you might not be able to access it. Simply close Anki and try again. Similarly Anki might refuse to open the database if
ankipandashas currently opened it (be it in a Jupyter notebook or in a currently running project).
For better debugging, you can increase the log level of