appnexus / pyrobuf

A Cython alternative to Google's Python Protobuf library
Other
555 stars 72 forks source link

Does not install on windows 10 #75

Open xocasdashdash opened 7 years ago

xocasdashdash commented 7 years ago

I'm trying to install this package on a windows machine and no luck. This is the error:

C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include -IC:\Users\joaquin\projects\DIGILANT\appnexus-spain\.env-local\PC /Tcpyrobuf/src\pyrobuf_list.c /Fobuild\temp.win-amd64-2.7\Release\pyrobuf/src\pyrobuf_list.obj pyrobuf_list.c pyrobuf/src\pyrobuf_list.c(495) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

I've tried reinstalling the microsoft c++ for python binding but did not work.

xocasdashdash commented 7 years ago

The fix seems to be related to lack of support of Visual C++ for python of C99. Adding this (file)[https://github.com/mattn/gntp-send/blob/700f4a2d844001a6197d68440a9123f197be6096/include/msinttypes/stdint.h] to the following path c:\Python27\include\ fixed it.

Maybe this needs to be documented?