jbaiter / jpegtran-cffi

Fast, (mostly) lossless JPEG transformations with Python
http://jpegtran-cffi.readthedocs.org
MIT License
145 stars 23 forks source link

Python 3.4: setup.py fails on parsing README.rst #9

Closed LandingEllipse closed 10 years ago

LandingEllipse commented 10 years ago

Trying to install jpegtran-cffi under Python3.4 fails with the following error:

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/jpegtran-cffi/setup.py", line 7, in <module>

    description_long = open('README.rst').read()

  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode

    return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2982: ordinal not in range(128)

Workaround: ctrl-z to suspend pip after it has downloaded jpegtran-cffi, but before installation. Navigate to README.rst under /tmp/pip_build_root and clear said file's contents (didn't bother with trying to find the offending byte...) before resuming the installation with fg.