hungpham2511 / toppra

robotic motion planning library
https://hungpham2511.github.io/toppra/index.html
MIT License
612 stars 169 forks source link

pip install 'charmap' error #172

Closed johnwason closed 3 years ago

johnwason commented 3 years ago

I am getting this error on Windows running pip install toppra on Windows Python 3.8:

Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-install-z85qqebr\toppra_a4f3172db8074f11b27a26e5b412e49c\setup.py", line 13, in <module>
        LONG_DESCRIPTION = file_.read()
      File "C:\Python38\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1649: character maps to <undefined>
johnwason commented 3 years ago

Commenting out loading LONG_DESCRIPTION in setup.py seems to fix the issue.

hungpham2511 commented 3 years ago

Cool. Thanks for reporting the issue. Unfortunately I do not use Windows so I am not sure how should we fix this issue :) Do you have any suggestion?

johnwason commented 3 years ago

I created a pull request that fixes the character errors. I have a team using some software that depends on this fix, so please upload a fixed wheel so they can use it.