Skip to content

UnicodeDecodeError with README.rst #169

@pabloheimplatz

Description

@pabloheimplatz

System Information

  • Python Version: 3.6.4
  • CPU or GPU: Macbook Air 2017

Describe the problem

There is a problem with the README.rst. Python gave me an UnicodeDecodeError. I tried to install with pip and directly from this repo. Both throw the error I posted below.

Solution for me: I cleared the README.rst so that there are no ASCI oder UTF-8 symbols in it. Works fine on my local Macbook.

Minimal repo / logs

$ pip install SageMaker
Collecting SageMaker
  Using cached https://files.pythonhosted.org/packages/81/13/709f55a8a74e8a3c7ead5a68453b82694c0d6a37fa4fdab0ac868fd5b4d8/sagemaker-1.2.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/m9/lqnkhvb16w18p7wg6rx06c8w0000gq/T/pip-install-yhyu0eez/SageMaker/setup.py", line 19, in <module>
        long_description=read('README.rst'),
      File "/private/var/folders/m9/lqnkhvb16w18p7wg6rx06c8w0000gq/T/pip-install-yhyu0eez/SageMaker/setup.py", line 10, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
      File "/anaconda3/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 0xc2 in position 5556: ordinal not in range(128)

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/m9/lqnkhvb16w18p7wg6rx06c8w0000gq/T/pip-install-yhyu0eez/SageMaker/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions