-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
vdsql: Don't know how to connect to .ddb (DuckDB) #2259
Comments
It appears that the After renaming the .ddb file, |
I thought this commit enabled this: a94cdff. I wonder what happened. |
I'm not sure what changed. But ibis will take a
the .ddb file can be loaded with |
Works for me as well, thanks.
I am not using explicit loaders myself, but that could be nice to have. I think with a94cdff working it would be a better user experience in any case. |
Neither work for me.
|
@reagle The other method is to open a file ending in |
I see you got the message But the
Does it work for you if you do that, and then run |
That never worked; there seems to be dependency issues, python version issues, etc. |
@reagle Can you paste the errors you have? |
Hi @anjakefala . First, I'm not sure why I'd use vdsql if the functionality has moved to vd now? But opening a duckdb fails with vd v3.1.1 (from homebrew) fails: "unknown 'duckdb' filetype" and it opens as text. Second, I'm not able to install a working vdsql from git as @midichef suggested above. I'm using uv to try to keep things cleaner, and am probably making a mistaking. Using python 3.10 yields:
and using a recent python chokes when trying to build pyarrow:
|
Couple of issues here.
It's assumed the user already has VisiData installed, which maybe shouldn't be assumed.
This is an ibis dependency. PyArrow 16.1.0 doesn't have a wheel built for Python 3.13. I recommend using a lower version of Python while we explore bumping the ibis version! |
This worked: git clone [email protected]:saulpw/visidata.git
cd visidata
uv venv --python 3.10 .venv
source .venv/bin/activate
uv pip install -e .
cd visidata/apps/vdsql
uv pip install -e .
uv pip install 'ibis-framework[duckdb]'
vdsql ~/tmp/duckdb-demo.duckdb Should the vdsql page be changed so that it's clear vdsql does not work in the vd mono repo and that python3.10 is needed? |
Yeah, that sounds reasonable. I'll give vdsql some attention soon! |
Small description
vdsql is not able to open a .ddb file
Expected result
vdsql is able to open a .ddb file.
Actual result with screenshot

Steps to reproduce with sample data and a .vd
Sample data:
command:
commandlog:
Additional context
Python 3.10.11
VisiData 96d2702
The text was updated successfully, but these errors were encountered: