-
Notifications
You must be signed in to change notification settings - Fork 26
Fatal ssl.SSLCertVerificationError when running pyright after new install from pip #209
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
Comments
|
This has been raised as an issue from a dev in python/typeshed#11575 (review) as well. It may or may not be related to ekalinin/nodeenv#316 (comment) and ekalinin/nodeenv#331 (comment) |
This is mostly a FYI I guess, but I'm getting this same error on a fully up to date MSYS2 installation: $ python3 --version
Python 3.11.9
$ python3 -m venv pydev
$ source pydev/bin/activate
$ pip install pyright
Collecting pyright
Downloading pyright-1.1.363-py3-none-any.whl.metadata (6.2 kB)
Collecting nodeenv>=1.6.0 (from pyright)
Downloading nodeenv-1.8.0-py2.py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: setuptools in c:/dev/msys64/home/me/dev/pydev/pydev/lib/python3.11/site-packages (from nodeenv>=1.6.0->pyright) (65.5.0)
Downloading pyright-1.1.363-py3-none-any.whl (18 kB)
Downloading nodeenv-1.8.0-py2.py3-none-any.whl (22 kB)
Installing collected packages: nodeenv, pyright
Successfully installed nodeenv-1.8.0 pyright-1.1.363
$ pyright
C:/dev/msys64/home/me/dev/pydev/pydev/lib/python3.11/site-packages/nodeenv.py:26: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
....
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006) I thought that perhaps installing I also tried to install it into the venv which also didn't change anything. $ pip install certifi
...
Successfully installed certifi-2024.2.2
$ python3 -m certifi
C:/dev/msys64/home/me/dev/pydev/lib/python3.11/site-packages/certifi/cacert.pem |
I'm going to close this issue as I believe this should only happen when making requests to the nodejs servers and the next release will add You can try it out today with
When released, it will be
Please let me know if you run into any issues with this new setup. |
I originally posted this to the pyright project (microsoft/pyright#5909). The moderator directed me to this project.
python 3.11
MacOS Monterey 12.3.1
pyright 1.1.326
After installing pyright using pip, I tried to run on the command line and got the error below. It could because the pyrightconfig.json is not configured correctly, but I don't see anything obvious there that would cause this bug.
Also note that in the example below I don't specify a source file, but the same error appears if I do
The text was updated successfully, but these errors were encountered: