-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message when opening a .sqlite db with duckdb #401
Comments
I've gotten similar errors building some versions of python. SQLite should be installed when you install Python, but sometimes the linking breaks. I'd try re-installing Python (3.11 is latest supported) |
I don't think that can be the problem, I was using dataset with sqlite3 with the same python installation. To be sure, I switched to another python3.11 installation and had exactly the same problem. I will note that the error says: And in fact, I have no .duckdb directory at all at the specified location. That seems like it's probably not a coincidence. Was harlequin supposed to create that directory, or do I have do already have duckdb installed and working in order to use harlequin?? |
Installing harlequin should automatically install duckdb, but it won't install the duckdb sqlite extension (https://duckdb.org/docs/extensions/sqlite.html). If you're trying to open a sqlite database, you should invoke Harlequin with the |
Ah! Using |
glad that did it. I'll create an issue to improve the error message there; I'm sure this will be a common error. |
released in v1.11.0 |
Describe the bug
I can't connect to a database with Harlequin; I get an error involving DuckDB saying to INSTALL sqlite. sqlite does exist on my system and I have no problem using it with or without python.
To Reproduce
pip install harequin
Try to run it with
harlequin /path/to/db
Expected behavior
It should connect to the database and do something useful.
Actual behavior
Additional context
The output of
harlequin --version
is:What database adapter are you using with Harlequin? (Default is DuckDB)
I'm just using the default.
Can you tell us more about your system?
The text was updated successfully, but these errors were encountered: