saulpw / visidata

A terminal spreadsheet multitool for discovering and arranging data
http://visidata.org
GNU General Public License v3.0
7.76k stars 276 forks source link

visidata silently fails under Windows with Python 3.12 (3.11 fine) #2267

Open clach04 opened 7 months ago

clach04 commented 7 months ago

Small description

visidata fails to load/display files without error

Expected result

visidata to load correctly (or report an error)

Actual result with screenshot If you get an unexpected error, please include the full stack trace that you get with Ctrl-E.

Steps to reproduce with sample data and a .vd

Either pip install visidata or from source code

  1. follow https://github.com/saulpw/visidata/blob/6a1f17c961d3a4cc32b198b018169198f7e4e4c3/README.md?plain=1#L30 pip3 install git+https://github.com/saulpw/visidata.git@develop
  2. run visidata

Will see version information, but process exits without UI showing.

I tried different tags with no success. Works fine with Python

Calling with a parameter, appears to load as there is a message to that effect but no UI loads up.

First try reproducing without any user configuration by using the flag -N. e.g. echo "abc" | vd -f txt -N

Please attach the commandlog (saved with Ctrl-D) to show the steps that led to the issue. See here for more details.

Additional context Please include the version of VisiData and Python.

any 3.0.x and 3.1

Python 3.12

(py312visidata_pip) C:\tmp>visidata
saul.pw/VisiData v3.0.2

(py312visidata_pip) C:\tmp>python
Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct  2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] on win32
clach04 commented 7 months ago
(py3venv) C:\code\py\visidata>visidata --debug
saul.pw/VisiData v3.0.2

Debug flag has no impact on reporting more details

clach04 commented 7 months ago

Appears to die inside:

https://github.com/saulpw/visidata/blob/6a1f17c961d3a4cc32b198b018169198f7e4e4c3/visidata/main.py#L341

tahir-hassan commented 3 weeks ago

@clach04 I tried using Visidata on normal Python on Windows and it loads files fine, but there were two issues: 1. the mouse didn't work (I couldn't click on a cell), and 2. pressing double quote (") didn't produce a character. I ended up installing Visidata via MSYS2, as it works within there.

Here is the issue: Double Quotation Character not working on Windows