ipgen icon indicating copy to clipboard operation
ipgen copied to clipboard

Issue with installation on Windows

Open mk868 opened this issue 7 years ago • 0 comments

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

mk868 avatar Nov 01 '18 15:11 mk868