Giter Club home page Giter Club logo

Comments (7)

elgrove avatar elgrove commented on June 14, 2024 15

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.

truthdoug avatar truthdoug commented on June 14, 2024 1

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.

truthdoug avatar truthdoug commented on June 14, 2024 1

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.

truthdoug avatar truthdoug commented on June 14, 2024

Looks like it's because of this (now fixed) issue in pgspecial: dbcli/pgspecial#145

from pgcli.

j-bennet avatar j-bennet commented on June 14, 2024

The fix was included into pgspecial 2.1.1, already released. See if this helps.

from pgcli.

dbaty avatar dbaty commented on June 14, 2024

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.

truthdoug avatar truthdoug commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.