Quick update: database lock issue resolved. But the PyPDF2 library issue remains.
Hi,
I just deployed a flask web app using a sqlite3 database. But I'm encountering database lock problem, which was never an issue when I run it locally. Also, I'm the only one person testing the deployment, thus, it's unlikely that it was caused by too many concurrent users (may db requests at the same time).
Environment: Python version: 3.9.13
error code: Error initializing xyz table: database is lockedĀ
And PyPDF2 issue error code: Error processing PDF: module 'PyPDF2' has no attribute 'PdfReader' Again, PyPDF2 library worked perfectly fine when the web app was running locally.
Please advise a solution. Thanks.