kociemba icon indicating copy to clipboard operation
kociemba copied to clipboard

Install fail on python 3.7

Open unaided opened this issue 6 years ago • 9 comments

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

unaided avatar Dec 23 '18 02:12 unaided

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 avatar Jan 15 '19 13:01 Oslomayor

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

kociemba_fail

Oslomayor avatar Jan 15 '19 14:01 Oslomayor

@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?

muodov avatar Jan 15 '19 15:01 muodov

@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.

Oslomayor avatar Jan 16 '19 16:01 Oslomayor

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.

cubhe avatar Jan 17 '19 05:01 cubhe

@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 avatar Jan 17 '19 08:01 muodov

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

muodov avatar Apr 01 '19 21:04 muodov

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

Oslomayor avatar May 29 '19 13:05 Oslomayor

i have the same problem

blahberi avatar Jan 01 '20 14:01 blahberi