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

pip install UnicodeDecodeError #304

Closed
ShaneKao opened this issue Nov 3, 2020 · 3 comments
Closed

pip install UnicodeDecodeError #304

ShaneKao opened this issue Nov 3, 2020 · 3 comments
Labels

Comments

@ShaneKao
Copy link

ShaneKao commented Nov 3, 2020

Describe the bug

I got the following error message when installing.

ERROR: Command errored out with exit status 1: command: 'd:\pyvm\ailabuap0.2-dev\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-l2zwa6vd\\pdfplumber\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-l2zwa6vd\\pdfplumber\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'" ');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-xa95nanc' cwd: C:\Users\user\AppData\Local\Temp\pip-install-l2zwa6vd\pdfplumber\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\user\AppData\Local\Temp\pip-install-l2zwa6vd\pdfplumber\setup.py", line 19, in <module> long_description = f.read() UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 4981: illegal multibyte sequence ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Code to reproduce the problem

pip install pdfplumber==0.5.24

Environment

  • pdfplumber version: 0.5.24
  • Python version: 3.7.5
  • OS: Windows
@ShaneKao ShaneKao added the bug label Nov 3, 2020
@jsvine
Copy link
Owner

jsvine commented Nov 3, 2020

Seems like you may not have UTF-8 set as your default encoding. Does it work if you run it like this?:

LANG=en_US.UTF-8 pip install pdfplumber==0.5.24

jsvine added a commit that referenced this issue Nov 13, 2020
@jsvine
Copy link
Owner

jsvine commented Nov 13, 2020

Now fixed in develop.

@jsvine jsvine closed this as completed Nov 13, 2020
@jsvine
Copy link
Owner

jsvine commented Dec 9, 2020

Now available in v0.5.25.

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

2 participants