muodov / kociemba

A pure Python and pure C ports of Kociemba's algorithm for solving Rubik's cube
GNU General Public License v2.0
561 stars 126 forks source link

Cannot install in Windows #30

Closed marcusmascarenhas closed 6 years ago

marcusmascarenhas commented 6 years ago

Have tried for hours to install in Windows (after installing Microsoft Visual Studios 2010 C++ compiler) however it keeps giving me the error below. Desperately require this module in Windows. Help would be appreciated.

creating build\temp.win32-2.7\Release\kociemba\ckociemba
    C:\Users\marcu\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ikociemba/ckociemba/include -Ic:\python27\include -Ic:\python27\PC /Tcbuild\temp.win32-2.7\Release\kociemba.ckociembawrapper.c /Fobuild\temp.win32-2.7\Release\build\temp.win32-2.7\Release\kociemba.ckociembawrapper.obj -std=c99 -O3 -D_XOPEN_SOURCE=700
    cl : Command line warning D9002 : ignoring unknown option '-std=c99'
    cl : Command line warning D9002 : ignoring unknown option '-O3'
    kociemba.ckociembawrapper.c
    build\temp.win32-2.7\Release\kociemba.ckociembawrapper.c(505) : error C2143: syntax error : missing ';' before 'type'
    build\temp.win32-2.7\Release\kociemba.ckociembawrapper.c(512) : error C2065: 'sol' : undeclared identifier
    build\temp.win32-2.7\Release\kociemba.ckociembawrapper.c(512) : warning C4047: 'return' : 'char *' differs in levels of indirection from 'int'
    error: command 'C:\\Users\\marcu\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2

Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\marcu\\appdata\\local\\temp\\pip-build-_nfd0j\\kociemba\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\marcu\appdata\local\temp\pip-wypqoj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\marcu\appdata\local\temp\pip-build-_nfd0j\kociemba\
muodov commented 6 years ago

Fixed by https://github.com/muodov/kociemba/pull/31