vicariousinc / science_rcn

Reference implementation of a two-level RCN model
https://www.vicarious.com/Common_Sense_Cortex_and_CAPTCHA.html
MIT License
663 stars 195 forks source link

fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory #22

Open fjpinilla opened 4 years ago

fjpinilla commented 4 years ago

OS: Windows 10

While using Anaconda prompt, i created a new environment with

create -n rcn python=2.7

Then I try the install:

python setup.py install

Finally get the following error: ... building '_dilation' extension

C:\Users\Pinilla\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\ProgramData\Anaconda3\envs\rcn_test1\include -IC:\ProgramData\Anaconda3\envs\rcn_test1\PC "-Ie:\downloads hdd\uned papers\rey-osterrieth\science_rcn-master\.eggs\numpy-1.16.6-py2.7-win-amd64.egg\numpy\core\include" /Tpscience_rcn/dilation/dilation.cc /Fobuild\temp.win-amd64-2.7\Release\science_rcn/dilation/dilation.obj

dilation.cc

e:\downloads hdd\uned papers\rey-osterrieth\science_rcn-master\.eggs\numpy-1.16.6-py2.7-win-amd64.egg\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION

science_rcn/dilation/dilation.cc(8) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory

error: command 'C:\\Users\\Pinilla\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

Tried installing latest version of Visual Studio and the MSVC por python as the setup.py suggests.

Any ideas?