-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
SSL Error (certificate verify failed) for Poetry install
, add
, etc.
#745
Comments
To side-step the certificate issue. Would it be possible to point to a shared directory? This doesn't work now because [[tool.poetry.source]]
name = "M"
url = "file://corporate.com/dfs/PythonPackages/" Edit: created new ticket for this suggestion: #748 |
Turns out Once set, Poetry worked without issue. Hopefully, this helps someone else out! Edit: Also, Jean-Philippe summarizes this issue perfectly: https://bugs.python.org/issue28547 |
See #1012 (comment) for a solution using the new |
Same trouble this morning
|
@tchaton you may want to open a new issue. I tested poetry latest with my network’s self-signed certificates yesterday and the recommended fixes still work. In your case, it looks like something else is happening (not a self-signed certificate error, at least not from your posted error message) I would recommend posting more information about your IT environment, poetry and OS versions, and the steps you can take to replicate the failure? Does pip install work with poetry run pip install. Is it only black that fails to install or all packages, etc. |
Below steps worked for me.
|
what worked for me (MacOS): |
@danibachini you are the queen! |
@danibachini |
specifically, run this command worked for me |
Thanks! This is correct solution for this issue for those Mac OS X. |
find your_ca_bundle.pem file, because your poetry commands need SSL certifications, export REQUESTS_CA_BUNDLE=~/your_cert_path/your_ca_bundle.pem |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
get_poetry.py
using Python 3.7.1 (Logs: install_poetry.txt)I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Windows 7
Poetry version: 0.12.10
Contents of your pyproject.toml file:
pyproject.toml (*renamed to .txt to upload)
poetry new hello_world
with my email address obscuredIssue
How can I point Poetry to a custom
.pem
certificate?Poetry isn't using the correct certificate when accessing pypi.org. For pip, conda, and other applications I have had to add a custom
.pem
file since my company uses a self-signed certificate. Thepip
in the virtualenv created by Poetry use the correct setting (see below:C:\\Programs\\cert\\cacert.pem
), but Poetry throws an SSLError when running any actionCode
Here are the abbreviated logs from running the minimum steps to reproduce:
The text was updated successfully, but these errors were encountered: