Skip to content

Issue with installation on Windows #1

@mk868

Description

@mk868

Hello,

When I try to install the package using the command:

python setup.py install

I get an error:

Traceback (most recent call last):
File "setup.py", line 21, in
long_description=read('README.rst'),
File "setup.py", line 12, in read
return open(os.path.join(os.path.dirname(file), filename)).read()
File "C:\Users\P50\AppData\Local\Programs\Python\Python37\lib\encodings\cp1250.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 2133: character maps to undefined

image

I temporary fixed problem with installation by replaceing line:
return open(os.path.join(os.path.dirname(__file__), filename)).read()
to:
return open(os.path.join(os.path.dirname(__file__), filename), encoding="utf8").read()
inside setup.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions