-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Improve SSL error message to instruct the user what to do #8473
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
Maybe also suggest downloading all needed packages by other means and using a local wheelhouse via Note that checking for the SSL module and failing early isn't really an option as |
I went through exactly this before filing this 😆 The |
Agreed. It's borederline related to the existing funded UX work (the suggested message here is very similar to where we've ended up with the |
The current UX work is an important source of inspiration to the suggestion 😆 |
Adding #8487 to the list of confused users. |
Also see pypa/setuptools#2289. |
Still do not know how to solve this problem :( |
@beesuns Upgrade your Python installation to include ssl support. Unfortunately, we can't tell you how to do that, it depends on how you installed Python, and possibly how your distribution packages Python. |
Uh oh!
There was an error while loading. Please reload this page.
What's the problem this feature will solve?
I’ve seen quite a few issues on the tracker on the same error message:
They all have the same root cause: The
ssl
built-in module is not available, and pip cannot access HTTPS URLs without it. The warning is however not easy to understand for less experienced users, and they tend to report this as an issue (pypa/virtualenv#1139, #8171, #8472 to list a few. It is, however, a system configuration problem that pip cannot fix.Describe the solution you'd like
Revise the error message to clearly say
a. If the user is using a self-compiled Python, it needs to be recompiled.
b. If the user is using pyenv, the system is missing build dependencies. This wiki page lists instructions on common platforms.
c. If the Python is installed by Anaconda or a package manager (e.g. Homebrew), this is likely a runtime configuration issue.
Alternative Solutions
Do nothing, and continue marking the issues as duplicates. They are not that common, so the overhead isn’t that bad. Maybe it’s possible to have a bot responding to them as well.
Additional context
Some popular destinations if you search the issue description on the Internet. They list quite a few popular causes to this that can be helpful:
The text was updated successfully, but these errors were encountered: