NNgen / nngen

NNgen: A Fully-Customizable Hardware Synthesis Compiler for Deep Neural Network
Apache License 2.0
340 stars 46 forks source link

setup.py not works #1

Closed Ryo-PurpleEye closed 5 years ago

Ryo-PurpleEye commented 5 years ago

By including non-ASCII characters In README.rst, setup.py not works: | cont@ubuntu18# python3 setup.py install | Traceback (most recent call last): | File "setup.py", line 18, in | long_description=read('README.rst'), | File "setup.py", line 8, in read | return open(os.path.join(os.path.dirname(file), filename)).read() | File "/usr/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 0xe2 in position 5888: ordinal not in range(128)

It might work In JP locale, but not tried. With replacing 2-byte chars to ascii chars (', ", etc.), setup.py ran correctly.

You can check these non-ascii chars: sed -e 's/[!-~\t \r\n\?]//g' README.rst | grep -nv '^$'

shtaxxx commented 5 years ago

Thank you for the very important information!

README.rst is generated from README.md via Pandoc. In the conversion process of Pandoc, some characters unfortunately are replaced with 2-byte characters.

I will update the conversion process, or will update README.rst manually.

shtaxxx commented 5 years ago

This issue has been resolved in 7e5a4480f08b4bb20fc6d126dd626361efc74bc7 . Thanks!