Open mcmathmo opened 3 years ago
Hello @mcmathmo sorry I didn't see this sooner. From what you've posted, it seems like the scanner is competing for access to the database. Is your anki doing some other work at the same time, or do you have another plugin running perhaps? Let me know if you are still interested and I can help research
Here is a stackoverflow on that error: https://stackoverflow.com/questions/3172929/operationalerror-database-is-locked/39449185
Hi, I also was getting the 'database locked' error when I set the path to the opened collection.anki2 file. When I changed the path to the newly created empty .anki2 file (unzipped from a newly made .apkg), this error disappeared, but I got another instead: #16
Hi, I also was getting the 'database locked' error when I set the path to the opened collection.anki2 file. When I changed the path to the newly created empty .anki2 file (unzipped from a newly made .apkg), this error disappeared, but I got another instead: #16
Hi @camerooncameroon can you tell me what operating system you have, what anki version, and if you have any other anki plugins running?
Creating a new empty db like you did will not work because then it wont be able to see what cards you have in your collection or create new cards. It's meant to interact with your main anki db. We should be able to figure out why the db is being accessed in parallel though and get it working
Hi @mentheosis, I gathered all this information and placed it here #16
Describe the bug I get a 'sqlite3.OperationalError: database is locked' error whenever I scan pasted text or from a file.
To Reproduce Steps to reproduce the behavior:
I also receive an identical error when trying to scan from a file.
Screenshots![image](https://user-images.githubusercontent.com/75301986/104134655-f9fea080-5382-11eb-9663-a5ccce204119.png)