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

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

Open
ghotiv opened this issue Jul 28, 2020 · 7 comments
Open

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

ghotiv opened this issue Jul 28, 2020 · 7 comments

Comments

@ghotiv
Copy link

ghotiv commented Jul 28, 2020

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

@blag
Copy link
Contributor

blag commented Jul 28, 2020

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.

@blag blag closed this as completed Jul 28, 2020
@ghotiv
Copy link
Author

ghotiv commented Jul 29, 2020 via email

@blag
Copy link
Contributor

blag commented Jul 29, 2020

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

@blag
Copy link
Contributor

blag commented Jul 29, 2020

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
Copy link
Author

ghotiv commented Jul 29, 2020 via email

@blag
Copy link
Contributor

blag commented Oct 30, 2020

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

@blag blag reopened this Oct 30, 2020
@theoturner
Copy link

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.

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

No branches or pull requests

3 participants