Comments (7)
Update
I ran brew install six
and got an upgrade of six from 1.16.0_3 -> 1.16.0_4, this progressed me to a new error
❯ pgcli
/opt/homebrew/Cellar/pgcli/4.0.0/libexec/lib/python3.12/site-packages/pgspecial/main.py:237: SyntaxWarning: invalid escape sequence '\w'
"""
Traceback (most recent call last):
File "/opt/homebrew/bin/pgcli", line 5, in <module>
from pgcli.main import cli
File "/opt/homebrew/Cellar/pgcli/4.0.0/libexec/lib/python3.12/site-packages/pgcli/main.py", line 21, in <module>
from cli_helpers.tabular_output import TabularOutputFormatter
File "/opt/homebrew/Cellar/pgcli/4.0.0/libexec/lib/python3.12/site-packages/cli_helpers/tabular_output/__init__.py", line 11, in <module>
from .output_formatter import format_output, TabularOutputFormatter
File "/opt/homebrew/Cellar/pgcli/4.0.0/libexec/lib/python3.12/site-packages/cli_helpers/tabular_output/output_formatter.py", line 15, in <module>
from . import (
File "/opt/homebrew/Cellar/pgcli/4.0.0/libexec/lib/python3.12/site-packages/cli_helpers/tabular_output/tabulate_adapter.py", line 17, in <module>
import tabulate
ModuleNotFoundError: No module named 'tabulate'
python-tabulate is installed already, so I reinstalled it brew reinstall python-tabulate
Now pgcli works!
Solution
brew upgrade six
brew reinstall python-tabulate
from pgcli.
I also had the problem with python-tabulate
and brew reinstall python-tabulate
fixed this. I've reinstalled six
but I'm still getting the SyntaxWarning: invalid escape sequence '\w'
warning.
The tabulate
problem prevented pgcli
from running. The other warning is just a warning... for now 😄
MacOS Sonoma 14.1
pgcli installed using homebrew, upgraded to 4.0 when the new homebrew formula was released
from pgcli.
Hmmm, if I install from source locally, it pulls the 2.1.1 release. However, I tried brew reinstall pgcli
and brew uninstall pgcli; brew install pgcli
and it's still using the 2.1.0 release.
A bit more digging and I found the culprit: the homebrew formula has the 2.1.0 release pinned in pgcli's resources
(Now to recall the instructions for submitting a patch for a new homebrew release...)
from pgcli.
Looks like it's because of this (now fixed) issue in pgspecial: dbcli/pgspecial#145
from pgcli.
The fix was included into pgspecial
2.1.1, already released. See if this helps.
from pgcli.
Thanks for digging in. If I understand correctly, the remaining issue is in the Homebrew formula (if it has not been fixed already). @elgrove and @truthdoug: could you please confirm? If so, we'll close this issue.
(I cannot reproduce any of the aforementioned errors on a standard pip install pgcli
, so I strongly suspect that any remaining issue will be in the Homebrew formula and should be raised there, not here.)
from pgcli.
Yes, confirmed. I updated pgcli to 4.0.1 and the problem is resolved. I'm ok with closing this issue (but cannot do so myself)
from pgcli.
Related Issues (20)
- pgcli disconnects when closing pager with `q` HOT 5
- Output to file in addition to the pager?
- Named Queries more user firendly
- [feature request] Unicode table HOT 1
- Using environment variables to connect via ssh HOT 2
- pgcli.magic `conn.session.engine.url` raises AttributeError after breaking change upstream in ipython-sql
- Raised notices are printed backwards HOT 3
- Segfault on MacOs HOT 2
- Doesn't work with Python 3.11/Windows HOT 6
- Tab completion not working in version 4.0.1 on macOS
- pendulum dependency cannot be installed on 32-bit arches HOT 4
- Autocomplete not working for Apache AGE extension function names HOT 1
- Boolean type always show `false` HOT 9
- `invalid input syntax for type oid: "{oid}"` when running \d on an index HOT 4
- Per-database prompt colours HOT 1
- psycopg.errors.DataCorrupted: missing chunk number 0 for toast value 16386 in pg_toast_2619 HOT 3
- Can not quit pgcli if server has shutdown
- Readme link - this page has moved HOT 1
- Document how to replace pg_isready with pgcli HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgcli.