question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not showing SELECT query results. (Windows)

See original GitHub issue

Description

SELECT query on pgcli only shows these messages Active code page: 1252 The system cannot find the file specified. on PGCLI

Picture here for reference Screenshot 2021-03-11 123803

Your environment

  • [ Windows 10 ] Please provide your OS and version information.
  • [ 3.1.0 ] Please provide your CLI version.
  • [
    pip freeze alembic==1.4.2 atomicwrites==1.4.0 attrs==19.3.0 cli-helpers==2.1.0 click==7.1.1 colorama==0.4.3 configobj==5.0.6 Flask==1.1.1 Flask-Cors==3.0.8 Flask-JWT-Extended==3.24.1 flask-marshmallow==0.11.0 Flask-Migrate==2.5.3 Flask-Script==2.0.6 Flask-SQLAlchemy==2.4.1 flask-swagger-ui==3.25.0 fuzzywuzzy==0.18.0 gunicorn==20.0.4 importlib-metadata==1.6.0 itsdangerous==1.1.0 Jinja2==2.11.1 Mako==1.1.2 MarkupSafe==1.1.1 marshmallow==3.5.1 marshmallow-sqlalchemy==0.22.3 more-itertools==8.2.0 numpy==1.18.2 packaging==20.3 pendulum==2.1.2 pgcli==3.1.0 pgspecial==1.12.1 pluggy==0.13.1 prompt-toolkit==3.0.16 psycopg2==2.8.6 py==1.8.1 Pygments==2.8.1 PyJWT==1.7.1 pyparsing==2.4.7 pytest==5.4.1 python-dateutil==2.8.1 python-decouple==3.3 python-editor==1.0.4 pytz==2019.3 pytzdata==2020.1 PyYAML==5.3.1 setproctitle==1.2.2 six==1.14.0 SQLAlchemy==1.3.15 sqlparse==0.4.1 tabulate==0.8.9 terminaltables==3.1.0 wcwidth==0.1.9 Werkzeug==1.0.0 zipp==3.1.0 ] What is the output of pip freeze command.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
j-bennetcommented, Mar 24, 2021

The error that you have (“the system cannot find the file specified”) is not showing up in pgcli logs. I think it might be happening inside click library, which is what we’re using for terminal output. Probably somewhere in here:

https://github.com/pallets/click/blob/43e40c05a4b94c6aa497dc7bba62b7d69b7e35ec/src/click/_termui_impl.py#L339

I think the problem might be caused by this bug:

https://github.com/pallets/click/issues/1514

That issue was fixed in click version 7.1.2. Try installing that:

pip install click==7.1.2

0reactions
jraygacommented, Mar 29, 2021

The error that you have (“the system cannot find the file specified”) is not showing up in pgcli logs. I think it might be happening inside click library, which is what we’re using for terminal output. Probably somewhere in here:

https://github.com/pallets/click/blob/43e40c05a4b94c6aa497dc7bba62b7d69b7e35ec/src/click/_termui_impl.py#L339

I think the problem might be caused by this bug:

pallets/click#1514

That issue was fixed in click version 7.1.2. Try installing that:

pip install click==7.1.2

Yup this fixes the problem! Thank you so much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Results in Grid is not showing in SQL Server - Stack Overflow
I ran into this issue and when I looked at the setting under 'Query Result' > 'SQL server' > it was already set...
Read more >
You cannot toggle the results pane - SQL Server
Open SQL Server Management Studio. · On the menu bar, click Tools, and then click Options. · In the tree-view pane on the...
Read more >
Query results window not showing - HeidiSQL
After i ran a query. the results are not getting displayed..but i see that the query has returned rows..i looked at the forum...
Read more >
How to Display Query and Results in Separate Tab in SSMS
Solution: To see the Result Windows in separate tab, you will be going to Options Go to Query Results, Then SQL Server and...
Read more >
Query results pane is disabled or can not access results
Another possibility could be (from the SQL Developer main toolbar) using Window > Reset WIndows To Factory Setting. Good luck.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found