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 in pip's file #4003

Closed
LotosikRa opened this issue Oct 9, 2016 · 1 comment
Closed

UnicodeDecodeError in pip's file #4003

LotosikRa opened this issue Oct 9, 2016 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation C: encoding Related to text encoding and likely, UnicodeErrors

Comments

@LotosikRa
Copy link

LotosikRa commented Oct 9, 2016

  • Pip version: 8.1.2
  • Python version: 3.4.4 x32 (installed with x86 MSI installer (bottom of the table))
  • Operating System: Windows 10 x64

Description:

I'm trying to install some packeges inside virtual environment. I have activated venv. pip list shows me list of system packeges and I decided to use python -m pip.

What I've run:

Note venv is isnside my directory (that contains slavic characters) so I have replaced it with <>.

(.venv) C:\Users\<>\Documents\ansible-flask-restful-local>.venv\Scripts\python -m pip install ipython==5.0.0
Requirement already satisfied (use --upgrade to upgrade): wcwidth in c:\users\<>\documents\ansible-flask-restful-local\.venv\lib\site-packages (from prompt-tool
kit<2.0.0,>=1.0.3->ipython==5.0.0)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in c:\users\<>\documents\ansible-flask-restful-local\.venv\lib\site-packages (from prompt-t
oolkit<2.0.0,>=1.0.3->ipython==5.0.0)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in c:\users\<>\documents\ansible-flask-restful-local\.venv\lib\site-packages (from tr
aitlets>=4.2->ipython==5.0.0)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in c:\users\<>\documents\ansible-flask-restful-local\.venv\lib\site-packages (from Jinja2>=
2.4->Flask==0.10.1)
Installing collected packages: ipython, PyJWT, Flask
  Found existing installation: ipython 5.1.0
Exception:
Traceback (most recent call last):
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\req\req_set.py", line 736, in install
    requirement.uninstall(auto_confirm=True)
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\req\req_install.py", line 695, in uninstall
    for path in pip.wheel.uninstallation_paths(dist):
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\wheel.py", line 535, in unique
    for item in fn(*args, **kw):
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\wheel.py", line 554, in uninstallation_paths
    r = csv.reader(FakeFile(dist.get_metadata_lines('RECORD')))
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1477, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "C:\Users\<>\Documents\ansible-flask-restful-local\.venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1474, in get_metadata
    return self._get(self._fn(self.egg_info, name)).decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 27887: invalid continuation byte
@xavfernandez xavfernandez added the C: encoding Related to text encoding and likely, UnicodeErrors label Mar 24, 2017
@pfmoore
Copy link
Member

pfmoore commented May 27, 2017

This should now be fixed by #4486, which is now available in the development version of pip and will be released in pip 10. I am closing this issue, but if you are still able to reproduce the problem in the development version of pip, please reopen it with a description of now to replicate the issue.

@pfmoore pfmoore closed this as completed May 27, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 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
Projects
None yet
Development

No branches or pull requests

3 participants