-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
Some issues during first time testing vdsql #2410
Comments
Just gave the (stable?) version 0.2 of vdsql a spin, with even less success: ❯ vdsql mysql://root:@localhost/mysql
Traceback (most recent call last):
File "/root/.venv/visidata/bin/vdsql", line 5, in <module>
from vdsql.__main__ import main
File "/root/.venv/visidata/lib/python3.9/site-packages/vdsql/__init__.py", line 2, in <module>
from ._ibis import *
File "/root/.venv/visidata/lib/python3.9/site-packages/vdsql/_ibis.py", line 8, in <module>
from visidata.pyobj import ExpandedColumn
ImportError: cannot import name 'ExpandedColumn' from 'visidata.pyobj' (/root/.venv/visidata/lib/python3.9/site-packages/visidata/pyobj.py) |
Thanks for the report, @p3k. Ibis development happens at a very fast pace (there have been 6 major releases in the <2 years since vdsql was first implemented), and so things change faster than we can adapt to them. For example,
You can see the stacktrace with Ctrl+E, and either save it from there with Ctrl+S, or copy it to your system clipboard with The other issues you mentioned could use a little attention too. Thanks again and sorry for the frustration. |
Hi @saulpw – thanks for your swift reply! I hope I did/do not sound too frustrated, that was not my intention. I am always delighted when I invoke Sorry to hear the Ibis integration is so stressful – I do not wish to add to the pressure. Just was curious to try out vdsql (and version 3 of visidata)… True, the status box can be a bit irritating – although I generally like its idea, and the quirky quotes (I feel quirky sometimes). Maybe immediately advertise the Thanks for the help to save the stack trace – I updated the issue description with the complete output. (Unfortunately, I cannot use a clipboard tool because visidata and the database are running on a remote machine… oh, and what is |
Thanks, @p3k, I appreciate the kind words!
There is a note at the bottom of the sidebar saying exactly that. It's not there for the status messages because those can't be disabled--but if you invoke any command, even just a move/click, it will dismiss the status sidebar and bring up the sheet-specific sidebar.
|
Ah, Re the note at the bottom of the status box: I now saw it |
Same here:
Visidata installed from github (3.1dev commit 8f823f5), vdsql installed from github as well (0.3.dev0 commit 21b43513700e305f4ee92bcfba88cf94d4a35243). And thanks for visidata, a great tool of daily use. |
This works for me:
Looks like the 0.2 release should have bounded its visidata dependency. Perhaps another release of vdsql to pypi, with pinned visidata could help? |
@frankier Thanks for this input, I tried to adapt it to my setup, it worked ☀️ My slightly different route to success goes like this:
... giving me vdsql with Visidata 3.0.2 on Python 3.11.6, able to work with duckdb files |
Small description
sqlalchemy
which is undocumented (source)vdsql mysql://root:@localhost/mysql
causes an error:OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
However,
vd -f ibis mysql://root:@localhost/mysql
works as expected (but is thisvdsql
at all?)-f
option works, anyway – I can set it to an arbitrary string and still get the database view:vd -f foobar mysql://root:@localhost/mysql
Expected result
sqlalchemy
as a required dependencyvdsql
should work with the database string-f
option should cause an error for unsupported loadersActual result with screenshot
Note: I can see the stack trace but I do not know how to copy it without the surrounding TUI getting in the way 🤷 (How can I hide the status box‽)
Update: The stack trace is now complete and the TUI out of the way.
Steps to reproduce
Any MySQL/MariaDB database should do.
Configuration
Does this issue reproduce without any plugins or configuration (using the
-N
CLI flag)?Yes, same error when invoking
vdsql -N mysql://…
Does this issue reproduce with either the latest release, or with the develop branch
Did not try this.
Additional context
What platform and version are you using (Linux, MacOS, Windows)?
Which version of Python?
Which terminal are you using (for display and input issues)?
Hyper 3.4.1 (stable) on macOS 10.15.7
The text was updated successfully, but these errors were encountered: