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

cannot pip install tabel on python 3.6 without LC_ALL=C.UTF-8 #6

Closed
mdaniel opened this issue May 4, 2019 · 1 comment
Closed

cannot pip install tabel on python 3.6 without LC_ALL=C.UTF-8 #6

mdaniel opened this issue May 4, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mdaniel
Copy link

mdaniel commented May 4, 2019

Due to the presence of the unicode characters in the description, if the LC_ALL environment variable isn't just right, python will attempt to read the description as ascii, resulting in a UnicodeDecodeError

$ docker run --rm -it -e LC_ALL=C python:3.6 bash -c 'pip install tabel==1.2.0'
Collecting tabel==1.2.0
  Downloading https://files.pythonhosted.org/packages/c1/85/d7c4a7100f3bd0a3d603f564d93d2436e33fbb9e8c1b0c276c8535b326c1/tabel-1.2.0.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-s5oh0_uq/tabel/setup.py", line 6, in <module>
        long_description = fh.read()
      File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 7718: ordinal not in range(128)
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-s5oh0_uq/tabel/

One can see that the unicode characters are only present in the IPA string, and thus can either be omitted or HTML encoded and this problem will go away:

$ tar -xOzf tabel-1.2.0.tar.gz 'tabel-1.2.0/PKG-INFO' | grep Dutch | od -c
0000000                                   *   T   a   b   e   l   *    
0000020   /   t   a 313 220 313 210   b 311 233   l   /       i   s    
@BastiaanBergman BastiaanBergman self-assigned this May 20, 2019
@BastiaanBergman BastiaanBergman added the bug Something isn't working label May 20, 2019
BastiaanBergman added a commit that referenced this issue May 20, 2019
Fix for issue #6, cannot pip install tabel on python 3.6 without LC_A…
@BastiaanBergman
Copy link
Owner

Thanks for noting! The unicode should be all removed now in version 1.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants