SQLAlchemy unable to open database file
I am encountering a problem where I can't access my local database. I am using fastapi dev command to start FastAPI and when I try to POST request I get the following error: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file (Background on this error at: https://sqlalche.me/e/20/e3q8) My current folder (tree) structure for backend is this: backend:. │ .env │ .gitignore │ x.py │ dummy_data.py │ main.py │ requirements.txt │ test_main.py │ └───database │ db.py │ ├───models │ │ Item.py In my db.py file I have this path for database: SQLITE_URL = f"sqlite:////b
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.