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

Install fail on python 3.7 #34

Open
unaided opened this issue Dec 23, 2018 · 9 comments
Open

Install fail on python 3.7 #34

unaided opened this issue Dec 23, 2018 · 9 comments

Comments

@unaided
Copy link

unaided commented Dec 23, 2018

UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 4168: illegal multibyte sequence

@Oslomayor
Copy link

I have the same probem when use pip install on windows10, python3.6:
File "C:\Users\Denis\AppData\Local\Temp\pip-install-rma7iced\kociemba\setup.py", line 5, in
long_description = open(os.path.join(os.path.dirname(file), 'README.md')).read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 4168: illegal multibyte sequence
I have installed VC++ build tools from Microsoft and upgraded pip to the newest version, but it does' work at all.

@Oslomayor
Copy link

It's driving me crazy. Any one can tell me why?

kociemba_fail

@muodov
Copy link
Owner

muodov commented Jan 15, 2019

@Oslomayor Thanks for the info!
Judging by the traceback, I think the problem is in this line https://github.com/muodov/kociemba/blob/master/setup.py#L5

I guess Windows is using another encoding by default, so changing the line to this might solve the problem:

long_description = open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8').read()

I don't have a Windows environment to confirm this. @Oslomayor would you mind trying it on your machine?

@Oslomayor
Copy link

Oslomayor commented Jan 16, 2019

@muodov Thanks for you reply! I changing the line as you told, however, it doesn't work. I guess there is something wrong with my Windows VC++ environment. Because it throws out a error like this:

error: Microsoft Visual C++ 14.0 is required.

I need some time to fix it.

@cubhe
Copy link

cubhe commented Jan 17, 2019

i think the problem is that the bottom code is C for linux, and python just call the C language code.

so i think change the local C code may work and do not use pip.

@muodov
Copy link
Owner

muodov commented Jan 17, 2019

@cubhe I don't think it's the case. There is no OS-specific in the C code. And some users have it running under windows.

@muodov
Copy link
Owner

muodov commented Apr 1, 2019

@Oslomayor @unaided Have you guys had any luck with this issue?

@Oslomayor
Copy link

@muodov Not yet. And I use MATLAB to solve Rubik's Cube now. Thanks : )

@blahberi
Copy link

blahberi commented Jan 1, 2020

i have the same problem

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