Comment 9 for bug 1306991

Revision history for this message
mlissner (mlissner-michaeljaylissner) wrote :

In reply to comment #6, I'm fairly certain this isn't requests' fault. My practice for one of my libraries for a long time was to lock the requests version at 1.2.3. Until Ubuntu 14.04, that worked fine, and the version was great.

This time immediately after I installed my older version of requests, pip started throwing this error.

Here's my terminal log. You can see everything is all good *until* I install requests.

10:54:26::mlissner@pounamu::~/Programming/intellij/juriscraper
↪ sudo pip install chardet==1.0.1
Downloading/unpacking chardet==1.0.1
  Downloading chardet-1.0.1.tar.gz (156kB): 156kB downloaded
  Running setup.py (path:/tmp/pip_build_root/chardet/setup.py) egg_info for package chardet

Installing collected packages: chardet
  Found existing installation: chardet 2.0.1
    Uninstalling chardet:
      Successfully uninstalled chardet
  Running setup.py install for chardet

Successfully installed chardet
Cleaning up...
10:54:36::mlissner@pounamu::~/Programming/intellij/juriscraper
↪ sudo pip install requests==1.2.3
Downloading/unpacking requests==1.2.3
  Downloading requests-1.2.3.tar.gz (348kB): 348kB downloaded
  Running setup.py (path:/tmp/pip_build_root/requests/setup.py) egg_info for package requests

Installing collected packages: requests
  Found existing installation: requests 2.2.1
    Uninstalling requests:
      Successfully uninstalled requests
  Running setup.py install for requests

Successfully installed requests
Cleaning up...
10:54:43::mlissner@pounamu::~/Programming/intellij/juriscraper
↪ sudo pip install lxml==3.0.1
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 11, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead