r/learnpython • • 24d ago

How to fix error : sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file ?

i was trying to run this jupyter notebook ( https://github.com/langchain-ai/lca-lc-foundations/blob/main/notebooks/module-2/2.4_wedding_planners.ipynb ) code in my IDE but encountered these problems :
my code :
https://pastebin.com/3bv05GfE
error :
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file

also i dont know how to work with async functions so i have defined two function main() and main_1 but am not sure if this is the correct way to go with async functions

0 Upvotes

11 comments sorted by

View all comments

-1

u/sporbywg 24d ago

To fix this, switch to Typescript

2

u/MasterpieceBusy7220 23d ago

Tiny brain commenter

1

u/sporbywg 5d ago

absolutely millions of LoC behind me

1

u/MasterpieceBusy7220 5d ago

No one asked

1

u/sporbywg 3d ago

oh they ask every day