Open younbaek opened 3 years ago
Thanks @younbaek . This is a student in a class I'm teaching and couldn't immediately help.
Best I can tell, the problem somehow stems from installing using Windows with a Korean character set as the system encoding. https://en.wikipedia.org/wiki/Unified_Hangul_Code. Not sure if this is a feature-reader specific problem or a python one more generally. But figured it would be worth having the issue on file.
pip install is being run from inside ipython--don't know if that makes a difference.
I encountered the same Unicode error on my Chinese character set Windows 10.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`
Hmm, interesting. I'm guessing that it's an issue when I read the readme file, since I use open("README.md", "r")
without specifying the encoding. I think adding encoding='utf8'
to the open
parameters will fix it.
I'll on parental leave right now, so my bandwidth is tight; I'll push out that fix (if that is the problem) when I have a moment.
In the meantime, if anybody has the ability to test if that's the problem, I would appreciate it. Essentially, it would involve cloning the git repository and seeing if you can run the following code from the folder:
with open("README.md", mode="r", encoding='utf-8') as fh:
long_description = fh.read()
If this is the issue, then the code above will work but if you remove encoding='utf-8' it will crash.
Ah, @organisciak is right. See here:
For example, long_description = open("README.md").read() in setup.py is a common mistake. Many Windows users can not install the package if there is at least one non-ASCII character (e.g. emoji) in the README.md file which is encoded in UTF-8.
I am having trouble installing this module on windows. I get the following error: