Skip to content
This repository

Pip upgrade exception #19

Closed
soimort opened this Issue October 23, 2012 · 4 comments

1 participant

Mort Yao
Mort Yao
Owner
➜  Downloads  sudo pip install --upgrade you-get
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.3/threading.py", line 639, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.3/threading.py", line 596, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.3/site-packages/pip-1.2.1-py3.3.egg/pip/index.py", line 245, in _get_queued_page
    page = self._get_page(location, req)
  File "/usr/lib/python3.3/site-packages/pip-1.2.1-py3.3.egg/pip/index.py", line 337, in _get_page
    return HTMLPage.get_page(link, req, cache=self.cache)
  File "/usr/lib/python3.3/site-packages/pip-1.2.1-py3.3.egg/pip/index.py", line 467, in get_page
    inst = cls(u(contents), real_url, headers)
  File "/usr/lib/python3.3/site-packages/pip-1.2.1-py3.3.egg/pip/backwardcompat.py", line 44, in u
    return s.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x90 in position 68: invalid start byte

Requirement already up-to-date: you-get in /usr/lib/python3.3/site-packages
Cleaning up...
Mort Yao soimort closed this in c49c1f0 October 23, 2012
Mort Yao soimort reopened this October 30, 2012
Mort Yao
Owner

PyPi index all history links in an endpoint page (http://pypi.python.org/simple/you-get/).
pip seems to mess with all of them (and tries to "decode" them as UTF-8), including those binary links which were obviously misadded.
easy_install handles it well.

Will create a pull request for pip. Also will drop you-get package on PyPi.

Mort Yao
Owner

Related pip issues:
pypa/pip#297
pypa/pip#326

seems it was already fixed in the git repo,

pip --version
pip 1.2.1.post1 from /usr/lib/python3.3/site-packages/pip-1.2.1.post1-py3.3.egg (python 3.3)

but not in the latest Arch package https://www.archlinux.org/packages/extra/any/python-pip/

pip --version
pip 1.2.1 from /usr/lib/python3.3/site-packages/pip-1.2.1-py3.3.egg (python 3.3)
Mort Yao soimort closed this October 30, 2012
Mort Yao
Owner

No, it's not fixed - very weird.

➜  Downloads  sudo pip install --upgrade you-get
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.3/threading.py", line 639, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.3/threading.py", line 596, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.3/site-packages/pip/index.py", line 261, in _get_queued_page
    page = self._get_page(location, req)
  File "/usr/lib/python3.3/site-packages/pip/index.py", line 353, in _get_page
    return HTMLPage.get_page(link, req, cache=self.cache)
  File "/usr/lib/python3.3/site-packages/pip/index.py", line 483, in get_page
    inst = cls(u(contents), real_url, headers)
  File "/usr/lib/python3.3/site-packages/pip/backwardcompat/__init__.py", line 51, in u
    return s.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position 77: invalid start byte

Requirement already up-to-date: you-get in /usr/lib/python3.3/site-packages/you_get-0.3.6-py3.3.egg
Cleaning up...
➜  Downloads  pip --version                     
pip 1.3.1 from /usr/lib/python3.3/site-packages (python 3.3)
Mort Yao soimort reopened this March 22, 2013
Mort Yao
Owner

Confirmed in the current git version of Pip.

➜  pip git:(develop) pip --version
pip 1.4.dev1 from /usr/lib/python3.3/site-packages/pip-1.4.dev1-py3.3.egg (python 3.3)
➜  pip git:(develop) pip install --upgrade you-get          
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.3/threading.py", line 639, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.3/threading.py", line 596, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.3/site-packages/pip-1.4.dev1-py3.3.egg/pip/index.py", line 286, in _get_queued_page
    page = self._get_page(location, req)
  File "/usr/lib/python3.3/site-packages/pip-1.4.dev1-py3.3.egg/pip/index.py", line 404, in _get_page
    return HTMLPage.get_page(link, req, cache=self.cache)
  File "/usr/lib/python3.3/site-packages/pip-1.4.dev1-py3.3.egg/pip/index.py", line 534, in get_page
    inst = cls(u(contents), real_url, headers)
  File "/usr/lib/python3.3/site-packages/pip-1.4.dev1-py3.3.egg/pip/backwardcompat/__init__.py", line 51, in u
    return s.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position 77: invalid start byte

Requirement already up-to-date: you-get in /usr/lib/python3.3/site-packages/you_get-0.3.6-py3.3.egg
Cleaning up...
Mort Yao soimort closed this in 215ce0f March 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.