Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CertificateError when trying to install packages on a virtualenv

Hey I'm trying to install some packages from a requires file on a new virtual environment (2.7.4), but I keep running into the following error:

    CertificateError: hostname 'pypi.python.org' doesn't match either of '*.addvocate.com', 'addvocate.com'

I cannot seem to find anything helpful on the error when I search. What is going wrong here? Who in the world is addvocate.com and what are they doing here?

like image 935
Abenga Avatar asked Jul 31 '13 07:07

Abenga


3 Answers

The issue is being documented on the python status site at http://status.python.org/incidents/jj8d7xn41hr5

like image 164
Michael Nelson Avatar answered Sep 22 '22 23:09

Michael Nelson


When I try to connect to pypi I get the following error:

pypi.python.org uses an invalid security certificate.

The certificate is only valid for the following names:
  *.addvocate.com , addvocate.com

So either pypi is using the wrong ssl certificate or somehow my connection is being routed to the wrong server.

In the meantime I have resorted to downloading directly from source URLs. See http://www.pip-installer.org/en/latest/usage.html#pip-install

like image 38
Tom Scrace Avatar answered Sep 24 '22 23:09

Tom Scrace


I had the same error, I fixed it by downgrading my pip version to 1.2.1:

easy_install pip==1.2.1

like image 24
ell987 Avatar answered Sep 20 '22 23:09

ell987