Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.python Subject: Re: pip does not work anymore Date: Mon, 23 Nov 2015 19:23:57 +0100 Organization: Decebal Computing Lines: 32 Message-ID: <87mvu4r2v6.fsf@Equus.decebal.nl> References: <87vb8trw9l.fsf@Equus.decebal.nl> <56530fb4$0$1589$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="8692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2W/7AgPKyWHvfVnNsutJPNMv1rLJr2j4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:WrFGu0lrHsYANcqdl0Br9d00yQY= sha1:Gczc+hMS8NzXZ/NNaP9aMDCnJjg= Xref: csiph.com comp.lang.python:99277 On Monday 23 Nov 2015 14:08 CET, Steven D'Aprano wrote: > On Mon, 23 Nov 2015 06:48 pm, Cecil Westerhof wrote: > >> When I try to install something with pip2 I get: >> Traceback (most recent call last): > [...] >> from urllib2 import (Request, urlopen, URLError, HTTPError, >> ImportError: cannot import name HTTPSHandler > > Before blaming SUSE for breaking this, please run this at the > interactive interpreter: > > import urllib2 > print urllib2.__file__ > > > Have you perhaps accidentally shadowed the std lib module? It worked without fail before the update, but you never know: Python 2.7.9 (default, Dec 13 2014, 18:02:08) [GCC] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib2 >>> print urllib2.__file__ /usr/lib64/python2.7/urllib2.pyc So I did not shadow I would think. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof