A bit more investigations on this problem. In a fresh virtualenv (on a jessie box):
(tst)root@ead8881e8ed5:/# pip install requests Downloading/unpacking requests Downloading requests-2.5.0-py2.py3-none-any.whl (464kB): 464kB downloaded Installing collected packages: requests Successfully installed requests Cleaning up... (tst)root@ead8881e8ed5:/# time python -c "import requests" real 0m0.087s user 0m0.044s sys 0m0.040s (tst)root@ead8881e8ed5:/# pip install ndg-httpsclient [...] (req)root@ead8881e8ed5:/req# time python -c "import requests" /req/local/lib/python2.7/site-packages/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer verification will be disabled. Import error is: No module named pyasn1.type warnings.warn(import_error_msg) /req/local/lib/python2.7/site-packages/ndg/httpsclient/ssl_peer_verification.py:24: UserWarning: SubjectAltName support is disabled - check pyasn1 package installation to enable warnings.warn(SUBJ_ALT_NAME_SUPPORT_MSG) /req/local/lib/python2.7/site-packages/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer verification will be disabled. Import error is: No module named pyasn1.type warnings.warn(import_error_msg) real 0m0.100s user 0m0.080s sys 0m0.012s (req)root@ead8881e8ed5:/req# pip install pyasn1 [...] (req)root@ead8881e8ed5:/req# time python -c "import requests" real 0m0.769s user 0m0.712s sys 0m0.052s -- David DOUARD LOGILAB Directeur du département Outils & Systèmes +33 1 45 32 03 12 david.dou...@logilab.fr +33 1 83 64 25 26 http://www.logilab.fr/id/david.douard Formations - http://www.logilab.fr/formations Développements - http://www.logilab.fr/services Gestion de connaissances - http://www.cubicweb.org/
<<attachment: david_douard.vcf>>
signature.asc
Description: OpenPGP digital signature