question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tabulate version 0.8.4 installation on Windows results in UnicodeDecodeError

See original GitHub issue

Hi, my team is seeing issues installing version 0.8.4 (it’s a dependency of one of the other pypi packages we use).

UnicodeEncodeError: 'charmap' codec can't encode characters in position 5907-5924: character maps to <undefined>

(env) PS C:\Users\wchill\Projects> pip install tabulate
Collecting tabulate
  Downloading https://files.pythonhosted.org/packages/76/35/ae65ed1268d6e2a1be141723e5fffdf4a28e4f4e7c1e083709b308998f90/tabulate-0.8.4.tar.gz (45kB)
     |████████████████████████████████| 51kB 1.1MB/s
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\wchill\projects\env\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\WCHILL\\AppData\\Local\\Temp\\pip-install-u6zf4jij\\tabulate\\setup.py'"'"'; __file__='"'"'C:\\Users\\WCHILL\\AppData\\Local\\Temp\\pip-install-u6zf4jij\\tabulate\\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 pip-egg-info
         cwd: C:\Users\WCHILL\AppData\Local\Temp\pip-install-u6zf4jij\tabulate\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\WCHILL\AppData\Local\Temp\pip-install-u6zf4jij\tabulate\setup.py", line 25, in <module>
        f.write(LONG_DESCRIPTION)
      File "c:\users\wchill\projects\env\lib\encodings\cp1252.py", line 19, in encode
        return codecs.charmap_encode(input,self.errors,encoding_table)[0]
    UnicodeEncodeError: 'charmap' codec can't encode characters in position 5907-5924: character maps to <undefined>
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
astanincommented, Sep 25, 2019

The problem was a debug print (f.write) left in the setup script.

It should be fixed in 0.8.5, which I have just uploaded to PyPI. Installs on Windows and Linux for me.

Sorry for inconvenience.

0reactions
imatiach-msftcommented, Sep 25, 2019

great, new version works for me as well, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tabulate fails to install on Windows - Bitbucket
Running python -m pip install tabulate==0.8.4 fails with the error message ... 'D:\temp\venv\Scripts\python.exe' -c 'import sys, setuptools, ...
Read more >
pip install tabulate UnicodeDecodeError - Stack Overflow
Solution It looked like a locale issue on my OS. Had to overwrite the global LANG environment variable to LANG="en_US.UTF-8".
Read more >
tabulate · PyPI
Installation. To install the Python library and the command line utility, run: pip install tabulate. The command line utility will be installed as ......
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
UTF-8 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 27: ordinal not in range(128): [...]" status:RESOLVED resolution:OBSOLETE ...
Read more >
Changelog — great_expectations ... - Great Expectations!
[BUGFIX] instantiation of ExpectationSuite always adds GE version ... Existing projects that have Expectation Suite Validation Results must be migrated.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found