mpdavis / python-jose

A JOSE implementation in Python
MIT License
1.54k stars 235 forks source link

zsh: no matches found: python-jose[cryptography] #179

Open ghotiv opened 4 years ago

ghotiv commented 4 years ago

(py375) ghoti@ghotideMacBook-Pro pay_test % pip install python-jose[cryptography] zsh: no matches found: python-jose[cryptography]

blag commented 4 years ago

Please include more information about your operating environment when opening an issue. The exact version of Python and pip that you are using would be helpful for me in reproducing the problem, and then fixing it.

$ python3.7 --version
Python 3.7.6
$ python3.7 -m venv venv
$ . venv/bin/activate
$ pip install python-jose[cryptography]
Collecting python-jose[cryptography]
  Using cached https://files.pythonhosted.org/packages/6c/80/5bdf2543fe002dc74429e9360148deb4d9e0b453acdc2b5c6fb1617f4f9d/python_jose-3.1.0-py2.py3-none-any.whl
Collecting pyasn1 (from python-jose[cryptography])
  Using cached https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl
Collecting rsa (from python-jose[cryptography])
  Using cached https://files.pythonhosted.org/packages/1c/df/c3587a667d6b308fadc90b99e8bc8774788d033efcc70f4ecaae7fad144b/rsa-4.6-py3-none-any.whl
Collecting six<2.0 (from python-jose[cryptography])
  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting ecdsa<1.0 (from python-jose[cryptography])
  Using cached https://files.pythonhosted.org/packages/b8/11/4b4d30e4746584684c758d8f1ddc1fa5ab1470b6bf70bce4d9b235965e99/ecdsa-0.15-py2.py3-none-any.whl
Collecting cryptography; extra == "cryptography" (from python-jose[cryptography])
  Using cached https://files.pythonhosted.org/packages/8a/dd/3b4b1ff1f4ab5aec83b5b0486b9df32fd3c8bf5f540c3bb2bdf403b68d0c/cryptography-3.0-cp35-abi3-macosx_10_10_x86_64.whl
Collecting cffi!=1.11.3,>=1.8 (from cryptography; extra == "cryptography"->python-jose[cryptography])
  Downloading https://files.pythonhosted.org/packages/b9/77/9dfa132945772d3d6a006cfdebe49d7c028064a28f241baeaf08496fbfae/cffi-1.14.1-cp37-cp37m-macosx_10_9_x86_64.whl (175kB)
     |████████████████████████████████| 184kB 399kB/s
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography; extra == "cryptography"->python-jose[cryptography])
  Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl
Installing collected packages: pyasn1, rsa, six, ecdsa, pycparser, cffi, cryptography, python-jose
Successfully installed cffi-1.14.1 cryptography-3.0 ecdsa-0.15 pyasn1-0.4.8 pycparser-2.20 python-jose-3.1.0 rsa-4.6 six-1.15.0
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip --version
pip 19.2.3 from venv/lib/python3.7/site-packages/pip (python 3.7)

Works for me on Python 3.7.6. I assume (py375) in your issue indicates that you are using Python version 3.7.5? Please confirm or post the output of python --version.

I suspect that the issue is that you are using an outdated version of pip that doesn't support the syntax for loading extras. What version of pip are you using? Please also include the output of pip --version. If you are using a version of pip that is older than version 19.2.3, please upgrade to version 19.2.3 or above. Then try installing python-jose[cryptography] again.

Closing, since I don't think this is our bug. Feel free to post more information in this issue though, and I'm happy to reopen this issue if it is our bug after all.

ghotiv commented 4 years ago

dear, tks for your answer,i use pyenv with python 3.7.5

pip install 'python-jose[cryptography]'

works for me, i add ''

blag notifications@github.com 于2020年7月28日周二 下午4:14写道:

Please include more information about your operating environment when opening an issue. The exact version of Python and pip that you are using would be helpful for me in reproducing the problem, and then fixing it.

$ python3.7 --version

Python 3.7.6

$ python3.7 -m venv venv

$ . venv/bin/activate

$ pip install python-jose[cryptography]

Collecting python-jose[cryptography]

Using cached https://files.pythonhosted.org/packages/6c/80/5bdf2543fe002dc74429e9360148deb4d9e0b453acdc2b5c6fb1617f4f9d/python_jose-3.1.0-py2.py3-none-any.whl

Collecting pyasn1 (from python-jose[cryptography])

Using cached https://files.pythonhosted.org/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl

Collecting rsa (from python-jose[cryptography])

Using cached https://files.pythonhosted.org/packages/1c/df/c3587a667d6b308fadc90b99e8bc8774788d033efcc70f4ecaae7fad144b/rsa-4.6-py3-none-any.whl

Collecting six<2.0 (from python-jose[cryptography])

Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl

Collecting ecdsa<1.0 (from python-jose[cryptography])

Using cached https://files.pythonhosted.org/packages/b8/11/4b4d30e4746584684c758d8f1ddc1fa5ab1470b6bf70bce4d9b235965e99/ecdsa-0.15-py2.py3-none-any.whl

Collecting cryptography; extra == "cryptography" (from python-jose[cryptography])

Using cached https://files.pythonhosted.org/packages/8a/dd/3b4b1ff1f4ab5aec83b5b0486b9df32fd3c8bf5f540c3bb2bdf403b68d0c/cryptography-3.0-cp35-abi3-macosx_10_10_x86_64.whl

Collecting cffi!=1.11.3,>=1.8 (from cryptography; extra == "cryptography"->python-jose[cryptography])

Downloading https://files.pythonhosted.org/packages/b9/77/9dfa132945772d3d6a006cfdebe49d7c028064a28f241baeaf08496fbfae/cffi-1.14.1-cp37-cp37m-macosx_10_9_x86_64.whl (175kB)

 |████████████████████████████████| 184kB 399kB/s

Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography; extra == "cryptography"->python-jose[cryptography])

Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl

Installing collected packages: pyasn1, rsa, six, ecdsa, pycparser, cffi, cryptography, python-jose

Successfully installed cffi-1.14.1 cryptography-3.0 ecdsa-0.15 pyasn1-0.4.8 pycparser-2.20 python-jose-3.1.0 rsa-4.6 six-1.15.0

WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.

You should consider upgrading via the 'pip install --upgrade pip' command.

$ pip --version

pip 19.2.3 from venv/lib/python3.7/site-packages/pip (python 3.7)

Works for me on Python 3.7.6. I assume (py375) in your issue indicates that you are using Python version 3.7.5? Please confirm or post the output of python --version.

I suspect that the issue is that you are using an outdated version of pip that doesn't support the syntax for loading extras. What version of pip are you using? Please also include the output of pip --version. If you are using a version of pip that is older than version 19.2.3, please upgrade to version 19.2.3 or above. Then try installing python-jose[cryptography] again.

Closing, since I don't think this is our bug. Feel free to post more information in this issue though, and I'm happy to reopen this issue if it is our bug after all.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mpdavis/python-jose/issues/179#issuecomment-664849830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABW3M6XGFLGRTHKV4YMUDJTR52CE7ANCNFSM4PJ7GU2A .

blag commented 4 years ago

What version of pip are you using? pip --version

blag commented 4 years ago

Oh, I think zsh is interpreting the square brackets differently than Bash. I'll update the README to use single quotes like you indicated. Thanks! 😄

ghotiv commented 4 years ago

yeah, zsh is the reason! bash with

pip install python-jose[cryptography]

works for me

blag notifications@github.com 于2020年7月29日周三 下午2:32写道:

Oh, I think zsh is interpreting the square brackets differently than Bash. I'll update the README to use single quotes like you indicated. Thanks! 😄

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mpdavis/python-jose/issues/179#issuecomment-665462176, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABW3M6SCC2PDSP7YSU5PZB3R567ADANCNFSM4PJ7GU2A .

blag commented 3 years ago

Reopening this issue because I completely forgot about it and I want to track it so I fix it instead of forgetting about it.

theoturner commented 3 years ago

For future reference, just use pip install 'python-jose[cryptography]' (with quotes) from the command line. The regular way without quotes still works fine in a requirements.txt, even if installed from zsh.