X Tutup
The Wayback Machine - https://web.archive.org/web/20201014070101/https://github.com/dbcli/pgcli/issues/1131
Skip to content
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

pip3 install pgcli --only-binary psycopg2 Not working #1131

Open
gpprojekt opened this issue Dec 5, 2019 · 2 comments
Open

pip3 install pgcli --only-binary psycopg2 Not working #1131

gpprojekt opened this issue Dec 5, 2019 · 2 comments

Comments

@gpprojekt
Copy link

@gpprojekt gpprojekt commented Dec 5, 2019

Description

Can't install pgcli with binary version of psycopg2.

Steps to reproduce

pip3 install pgcli --only-binary psycopg2
Collecting pgcli
...
Collecting psycopg2>=2.8 (from pgcli)
  Could not find a version that satisfies the requirement psycopg2>=2.8 (from pgcli) (from versions: 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.3.1, 2.7.3.2, 2.7.4, 2.7.5, 2.7.6, 2.7.6.1, 2.7.7)
No matching distribution found for psycopg2>=2.8 (from pgcli)

but

pip3 install psycopg2-binary
Collecting psycopg2-binary
...
Successfully installed psycopg2-binary-2.8.4

Your environment

Ubuntu-18.14 on WSL2

  • What is the output of pip freeze command.
argcomplete==1.8.1
argh==0.26.2
asn1crypto==0.24.0
attrs==19.3.0
Automat==0.6.0
bcrypt==3.1.7
beautifulsoup4==4.6.0
blinker==1.4
Brotli==1.0.4
cached-property==1.5.1
certifi==2019.11.28
cffi==1.13.2
chardet==3.0.4
click==6.7
click-plugins==1.0.2
cligj==0.5.0
cloud-init==19.2
colorama==0.4.1
command-not-found==0.3
ConfigArgParse==0.11.0
configobj==5.0.6
constantly==15.1.0
construct==2.8.16
cryptography==2.8
cssutils==1.0.2
cycler==0.10.0
decorator==4.1.2
distro-info===0.18ubuntu0.18.04.1
docker==4.1.0
docker-compose==1.25.0
dockerpty==0.4.1
docopt==0.6.2
feedparser==5.2.1
Fiona==1.8.11
Flask==0.12.2
future==0.15.2
GDAL==3.0.2
Guake==3.0.5
h2==3.0.1
hpack==3.0.0
html2text==2018.1.9
html5lib==0.999999999
httpie==1.0.3
httplib2==0.9.2
hyperframe==5.1.0
hyperlink==17.3.1
idna==2.8
importlib-metadata==1.2.0
incremental==16.10.1
ipython-genutils==0.2.0
itsdangerous==0.24
Jinja2==2.10
jsbeautifier==1.6.4
jsonpatch==1.16
jsonpointer==1.10
jsonschema==3.2.0
jupyter-core==4.4.0
kaitaistruct==0.7
keyring==10.6.0
keyrings.alt==3.0
language-selector==0.1
lxml==4.2.1
MarkupSafe==1.0
matplotlib==2.1.1
mitmproxy==2.0.2
more-itertools==8.0.0
munch==2.2.0
nbformat==4.4.0
netifaces==0.10.4
numpy==1.13.3
oauthlib==2.0.6
olefile==0.45.1
OWSLib==0.18.0
PAM==0.4.2
paramiko==2.7.0
passlib==1.7.1
pathtools==0.1.2
pbr==3.1.1
Pillow==5.1.0
plotly==2.2.3
psycopg2==2.7.4
psycopg2-binary==2.8.4
pyasn1==0.4.2
pyasn1-modules==0.2.1
pycairo==1.16.2
pycparser==2.19
pycrypto==2.6.1
Pygments==2.5.2
pygobject==3.26.1
pyinotify==0.9.6
PyJWT==1.5.3
PyNaCl==1.3.0
pyOpenSSL==17.5.0
pyparsing==2.2.0
pyperclip==1.6.0
pyproj==2.4.1
pyrsistent==0.15.6
pyserial==3.4
python-apt==1.6.4
python-dateutil==2.6.1
python-debian==0.1.32
pytz==2018.3
pyxdg==0.25
PyYAML==3.13
requests==2.22.0
requests-unixsocket==0.1.5
ruamel.yaml==0.15.34
SecretStorage==2.3.1
service-identity==16.0.0
simplejson==3.13.2
six==1.13.0
sortedcontainers==1.5.7
ssh-import-id==5.7
systemd-python==234
termcolor==1.1.0
texttable==1.6.2
tldr==0.5
tornado==4.5.3
traitlets==4.3.2
Twisted==17.9.0
ufw==0.36
unattended-upgrades==0.1
urllib3==1.25.7
urwid==2.0.1
watchdog==0.8.3
webencodings==0.5
websocket-client==0.56.0
Werkzeug==0.14.1
zipp==0.6.0
zope.interface==4.3.2
@pottegil
Copy link

@pottegil pottegil commented Dec 18, 2019

I am having the same problem on an Ubuntu 18.04.3

$ pip3 freeze
psycopg2-binary==2.8.4

During install

$ pip3 install pgcli --only-binary psycopg2
Collecting pgcli
  Using cached https://files.pythonhosted.org/packages/89/11/fba529b929db020fdafbfdc3d5ac33d2a30c8834e6a81cb4e104e82ee59f/pgcli-2.2.0-py3-none-any.whl
Collecting humanize>=0.5.1 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/8c/e0/e512e4ac6d091fc990bbe13f9e0378f34cf6eecd1c6c268c9e598dcf5bb9/humanize-0.5.1.tar.gz
Collecting click>=4.1 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting Pygments>=2.0 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/be/39/32da3184734730c0e4d3fa3b2b5872104668ad6dc1b5a73d8e477e5fe967/Pygments-2.5.2-py2.py3-none-any.whl
Collecting cli-helpers[styles]>=1.2.0 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/51/53/d94bb9cd98cd996da6eeea82a077293cd62b825d89a36d3c27714cae5e5b/cli_helpers-1.2.1-py3-none-any.whl
Collecting configobj>=5.0.6 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting sqlparse<0.4,>=0.3.0 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl
Collecting prompt-toolkit<3.0.0,>=2.0.6 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/87/61/2dfea88583d5454e3a64f9308a686071d58d59a55db638268a6413e1eb6d/prompt_toolkit-2.0.10-py3-none-any.whl
Collecting pgspecial>=1.11.8 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/4e/0c/47957ad5b5cfb488344032326a4a013127b005929422bc5e9ee98bdf18ec/pgspecial-1.11.9.tar.gz
Collecting setproctitle>=1.1.9 (from pgcli)
  Using cached https://files.pythonhosted.org/packages/5a/0d/dc0d2234aacba6cf1a729964383e3452c52096dc695581248b548786f2b3/setproctitle-1.1.10.tar.gz
Collecting psycopg2>=2.8 (from pgcli)
  Could not find a version that satisfies the requirement psycopg2>=2.8 (from pgcli) (from versions: 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.3.1, 2.7.3.2, 2.7.4, 2.7.5, 2.7.6, 2.7.6.1, 2.7.7)
No matching distribution found for psycopg2>=2.8 (from pgcli)
@pottegil
Copy link

@pottegil pottegil commented Dec 18, 2019

Interestingly, dropping back a version worked fine:

pip install pgcli==2.1.1 --only-binary psycopg2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup