Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install through pip or locally because of setup.py #16

Open
Wigder opened this issue Apr 2, 2019 · 6 comments
Open

Cannot install through pip or locally because of setup.py #16

Wigder opened this issue Apr 2, 2019 · 6 comments

Comments

@Wigder
Copy link

Wigder commented Apr 2, 2019

When attempting to install:

Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\ser\AppData\Local\Temp\pip-req-build-jkgwiajx\setup.py", line 8, in <module> readme = f.read() File "C:\Users\user\AppData\Local\Programs\Python\Python36\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 0x8d in position 661: character maps to <undefined>

Fixed by changing the following lines from setup.py:

with open('README.md'') as f:
    readme = f.read()
with open('LICENSE') as f:
    license = f.read()

To the following:

with open('README.md', encoding='utf-8') as f:
    readme = f.read()
with open('LICENSE', encoding='utf-8') as f:
    license = f.read()
@Wigder
Copy link
Author

Wigder commented Apr 2, 2019

Python ver is 3.6.8

@Wigder
Copy link
Author

Wigder commented Apr 2, 2019

This is on Windows by the way - I realise now that this package is really difficult to install on Windows due to the C dependencies.

@omarmhaimdat
Copy link

I run into the same issue, it seems that one of the dependencies is deprecated, I'm not sure which one but if I would guess I would say it has to do with NumPy API.

@Elyesbou
Copy link

Elyesbou commented Sep 4, 2019

I'm still having the same issue while installing whatthelang on windows . any new updates concerning the solution? thanks

@sachin376
Copy link

Same issue. I have been struggling to install whatthelang on windows machine but no luck. Any update on this. thanks!

@MOvi996
Copy link

MOvi996 commented May 2, 2022

same issue. did anyone ever find a way to install it on windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants