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

Error with utf-8 filenames #4863

Closed
julienmalard opened this issue Nov 14, 2017 · 3 comments
Closed

Error with utf-8 filenames #4863

julienmalard opened this issue Nov 14, 2017 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation C: encoding Related to text encoding and likely, UnicodeErrors kind: crash For situations where pip crashes OS: windows Windows specific type: bug A confirmed bug or unintended behavior

Comments

@julienmalard
Copy link

  • Pip version: 9.0.1
  • Python version: 3.6.2 (v3.6.2:5fd33b5) 32 bits
  • Operating system: Windows 64 bits

Description:

When the project contains files with UTF-8 file names, pip does not correctly install.

What I've run:

pip install tikon

Traceback:

Collecting tikon
Using cached tikon-1.1.0.tar.gz
Exception:
Traceback (most recent call last):
File "c:\users\jmalar1\appdata\local\programs\python\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 0xed in position 24: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\jmalar1\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\jmalar1\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py", line 335, in run
wb.build(autobuilding=True)
File "c:\users\jmalar1\appdata\local\programs\python\python36-32\lib\site-packages\pip\wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "c:\users\jmalar1\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "c:\users\jmalar1\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 634, in prepare_file
abstract_dist.prep_for_dist()
File "c:\users\jmalar1\appdata\local\programs\python\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:\users\jmalar1\appdata\local\programs\python\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:\users\jmalar1\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils_init
.py", line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\jmalar1\appdata\local\programs\python\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 0xed in position 24: invalid continuation byte

@pradyunsg pradyunsg added kind: crash For situations where pip crashes OS: windows Windows specific C: encoding Related to text encoding and likely, UnicodeErrors labels Nov 14, 2017
@pradyunsg
Copy link
Member

Hi @julienmalard!

This is indeed an issue that has been fixed in the upcoming pip 10 -- #4486. Until that comes out, you can probably use pip's current master as a workaround. :)

@pradyunsg pradyunsg added the S: awaiting response Waiting for a response/more information label Nov 14, 2017
@julienmalard
Copy link
Author

julienmalard commented Nov 14, 2017 via email

@pradyunsg pradyunsg removed the S: awaiting response Waiting for a response/more information label Nov 14, 2017
@pradyunsg pradyunsg added type: bug A confirmed bug or unintended behavior and removed type: bug A confirmed bug or unintended behavior labels May 11, 2018
@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 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 kind: crash For situations where pip crashes OS: windows Windows specific type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants