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

Windows 10, Python v3.6.3, olefile v0.44 UnicodeDecodeError #80

Closed
Ivan-Castro opened this issue Oct 24, 2017 · 2 comments
Closed

Windows 10, Python v3.6.3, olefile v0.44 UnicodeDecodeError #80

Ivan-Castro opened this issue Oct 24, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@Ivan-Castro
Copy link

Trying to install olefile through pip install Pillow, I got:

C:\Users\Iván>pip install Pillow
Requirement already satisfied: Pillow in c:\users\iván\appdata\local\programs\python\python36-32\lib\site-packages\pillow-4.3.0-py3.6-win32.egg
Collecting olefile (from Pillow)
  Using cached olefile-0.44.zip
Installing collected packages: olefile
  Running setup.py install for olefile ... error
Exception:
Traceback (most recent call last):
  File "c:\users\iván\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 0xe1 in position 57: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\iván\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\users\iván\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "c:\users\iván\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "c:\users\iván\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_install.py", line 878, in install
    spinner=spinner,
  File "c:\users\iván\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\iván\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 0xe1 in position 57: invalid continuation byte
@hugovk
Copy link
Contributor

hugovk commented Oct 24, 2017

Do you get the same with "pip install olefile"?

You could first try "python -m pip install -U pip setuptools wheel" just in case.

@decalage2
Copy link
Owner

When I read the error messages, it looks like an exception in pip due to the special character in the user name (C:\Users\Iván), and not an olefile issue. I'll close it, feel free to reopen if you have more evidence it's linked to olefile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants