Akarshan Arora
10/21/2021, 9:34 AMAnna Geller
prefect version
in your terminal, which version does it show? I would suggest reinstalling using:
pip install -U "prefect>=2.0.0a"
And if this doesn’t help, you can create a new sqlite database in a directory of your choice and set env variable pointing Orion to this database:
sqlite3 orion.db
export PREFECT_ORION_DATABASE_CONNECTION_URL=sqlite+aiosqlite:///orion.db
Akarshan Arora
10/21/2021, 10:18 AMFile "/mnt/c/Users/akarshan/python_proj/prefect_orion/.env/lib/python3.8/site-packages/aiosqlite/core.py", line 102, in run
result = function()
sqlite3.OperationalError: no such table: flow_run
Anna Geller
prefect orion reset-db
Akarshan Arora
10/21/2021, 10:55 AMJoão Luiz Carabetta
10/22/2021, 4:07 PMKevin Kho
CA Lee
11/04/2021, 2:24 AMsqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
None of the commands below worked for me:
prefect orion reset-db
sqlite3 orion.db
export PREFECT_ORION_DATABASE_CONNECTION_URL=sqlite+aiosqlite:///orion.db
I am using Prefect 2.0a3
, Python 3.8.11
Kevin Kho
Anna Geller
pip install -U "prefect>=2.0.0a"
prefect version # send it to us if it something shouldn't work
prefect orion start
and then if for some reason this doesn’t work, you can reset the DB:
prefect orion reset-db
prefect orion start
And if even then DB should not work, then create a new database and point Prefect to it via env variable:
sqlite3 orion.db
export PREFECT_ORION_DATABASE_CONNECTION_URL=sqlite+aiosqlite:///orion.db
Let us know if you still face any issues.Zanie
Zanie
Peter
12/16/2021, 1:52 PMsqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
every time. Prefect version 2.0a6 (also tested with latest from GitHub), Python 3.9.5/3.10.0, Windows 10. Any idea how to solve this?Anna Geller
prefect orion reset-db
prefect orion start
If this still doesn’t work, cross-check your sqlite3 version. I saw one user who was somehow using a version from 2019.
sqlite3 version
should give you for Orion 2.0a6:
SQLite version 3.36.0 2021-06-18 18:36:39
Zanie
Peter
12/16/2021, 4:11 PMSQLite version 3.36.0 2021-06-18
in a fresh virtual environment (using conda), so probably not that. Maybe a Windows issue. I'll try it in WSL when I get the time. This is the first time I've tried running Orion and I haven't been able to make it work yet (but it looks awesome!). Regular Prefect works, so I guess I'll stick with that for now, but I'm excited for what's to come!Zanie