Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 24: invalid continuation byte #4825

Closed
chenzx opened this issue Oct 30, 2017 · 5 comments
Labels
auto-locked Outdated issues that have been locked by automation C: encoding Related to text encoding and likely, UnicodeErrors resolution: duplicate Duplicate of an existing issue/PR

Comments

@chenzx
Copy link

chenzx commented Oct 30, 2017

  • Pip version: 9.0.1
  • Python version: 3.6.3 32bit
  • Operating system: Windows 7, 64bit

Description:

What I've run:

C:\Users\banma-227>python -m pip install shapely
Collecting shapely
  Downloading Shapely-1.6.2.tar.gz (220kB)
    100% |████████████████████████████████| 225kB 38kB/s
Exception:
Traceback (most recent call last):
  File "C:\Python36-32\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
    return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 24: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Python36-32\lib\site-packages\pip\commands\install.py", line 324, in run
    requirement_set.prepare_files(finder)
  File "C:\Python36-32\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "C:\Python36-32\lib\site-packages\pip\req\req_set.py", line 634, in _prepare_file
    abstract_dist.prep_for_dist()
  File "C:\Python36-32\lib\site-packages\pip\req\req_set.py", line 129, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "C:\Python36-32\lib\site-packages\pip\req\req_install.py", line 439, in run_egg_info
    command_desc='python setup.py egg_info')
  File "C:\Python36-32\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
    line = console_to_str(proc.stdout.readline())
  File "C:\Python36-32\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
    return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 24: invalid continuation byte
@pradyunsg pradyunsg added resolution: duplicate Duplicate of an existing issue/PR C: encoding Related to text encoding and likely, UnicodeErrors labels Oct 30, 2017
@pradyunsg
Copy link
Member

Hi @chenzx!

This is indeed an issue that has since been fixed. The upcoming pip 10 release will contain a fix for it. :)

Ref: #4486

@chenzx
Copy link
Author

chenzx commented Oct 30, 2017 via email

@moorepants
Copy link

Is there a work around before pip 10 is released?

@pradyunsg
Copy link
Member

@moorepants Have a read of #4110. There's at least 2 ways it can worked around, IIRC. One of them doesn't involve upgrading to the development version of pip.


@chenzx If you want to, you can close this issue. :)

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 11, 2018
@chrahunt chrahunt removed the S: needs triage Issues/PRs that need to be triaged label Jul 25, 2019
@chrahunt
Copy link
Member

It looks like this was fixed so I will go ahead and close the issue, but please let us know if something is wrong.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Aug 24, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: encoding Related to text encoding and likely, UnicodeErrors resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

4 participants