Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 922: ordinal not in range(128) #28

@ckosten

Description

@ckosten

I kept getting the following error when trying to pip install this package.

Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/fs/j80hs_f913l5w4447q50b1lh0000gn/T/pip-req-build-88_26oi8/setup.py", line 14, in <module> long_description=open('README.rst').read() + "\n\n" + \ File "python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 922: ordinal not in range(128)
I added the encoding argument to the setup.py file, and then I was able to install, maybe this could be helpful for others too.

long_description=open('README.rst', encoding="utf-8").read() + "\n\n" +
open(os.path.join('docs', 'HISTORY.txt')).read(),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions