Skip to content

--quiet suppresses ssl errors #4919

Closed
Closed
@jsha

Description

@jsha
  • Pip version: 9.0.01
  • Python version: 2.7.12
  • Operating system: Ubuntu 16.04.3 LTC

Description:

I was trying to figure out why pip install -q <packages> was failing. There was error message output but it did not make sense. When I removed -q, I saw that it was hiding an important SSL error.

What I've run:

Note: I'm aware that overriding REQUESTS_CA_BUNDLE caused the ssl error. My issue here is that the ssl error was hidden by -q, making it harder to diagnose the problem. In the actual use case, the setting of REQUESTS_CA_BUNDLE was far away, so the issue was not as obvious as it is in this toy example. :-)

$ REQUESTS_CA_BUNDLE=pebble.minica.pem pip install -q josepy
  Could not find a version that satisfies the requirement josepy (from versions: )
No matching distribution found for josepy
$ REQUESTS_CA_BUNDLE=pebble.minica.pem pip install josepy
Collecting josepy
  Could not fetch URL https://pypi.python.org/simple/josepy/: There was a problem confirming the ssl certificate: unknown error (_ssl.c:2831) - skipping
  Could not find a version that satisfies the requirement josepy (from versions: )
No matching distribution found for josepy

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationstate: needs discussionThis needs some more discussiontype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions