Hi again and thanks for your answer,
I’m a bit new with Python and I still have some problems installing external stuff. I have no problem to install nupic from sources (by the way, I’m using Windows). However, I cannot do the same with nupic.core (which I understand is what’s needed, since nupic.bindings is there).
I have been several hours reading and trying, uninstalling, downloading again, installing back… And I’m still unable to do it. I got the sources from https://github.com/numenta/nupic.core, and tried to do what’s said there. However, to start with, I cannot install pycapnp.
This is what I get when I try to install the dependencies:
C:\Users\ivans_000\Dropbox\3. Lenguaraz\nupic.core-master>pip install -r .\bindings\py\requirements.txt
Requirement already satisfied: numpy==1.12.1 in c:\python27\lib\site-packages (from -r .\bindings\py\requirements.txt (line 2))
Requirement already satisfied: pytest==3.0.7 in c:\python27\lib\site-packages (from -r .\bindings\py\requirements.txt (line 3))
Requirement already satisfied: pytest-cov==2.5.0 in c:\python27\lib\site-packages (from -r .\bindings\py\requirements.txt (line 4))
Requirement already satisfied: pytest-xdist==1.16.0 in c:\python27\lib\site-packages (from -r .\bindings\py\requirements.txt (line 5))
Collecting pycapnp==0.5.12 (from -r .\bindings\py\requirements.txt (line 6))
Using cached pycapnp-0.5.12.tar.gz
Requirement already satisfied: colorama; sys_platform == "win32" in c:\python27\lib\site-packages (from pytest==3.0.7->-r .\bindings\py\requirements.txt (line 3))
Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pytest==3.0.7->-r .\bindings\py\requirements.txt (line 3))
Requirement already satisfied: py>=1.4.29 in c:\python27\lib\site-packages (from pytest==3.0.7->-r .\bindings\py\requirements.txt (line 3))
Requirement already satisfied: coverage>=3.7.1 in c:\python27\lib\site-packages (from pytest-cov==2.5.0->-r .\bindings\py\requirements.txt (line 4))
Requirement already satisfied: execnet>=1.1 in c:\python27\lib\site-packages (from pytest-xdist==1.16.0->-r .\bindings\py\requirements.txt (line 5))
Requirement already satisfied: apipkg>=1.4 in c:\python27\lib\site-packages (from execnet>=1.1->pytest-xdist==1.16.0->-r .\bindings\py\requirements.txt (line 5))
Building wheels for collected packages: pycapnp
Running setup.py bdist_wheel for pycapnp ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\ivans_~1\\appdata\\local\\temp\\pip-build-7beli4\\pycapnp\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\ivans_~1\appdata\local\temp\tmpdbwcprpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\capnp
copying capnp\version.py -> build\lib.win-amd64-2.7\capnp
copying capnp\_gen.py -> build\lib.win-amd64-2.7\capnp
copying capnp\__init__.py -> build\lib.win-amd64-2.7\capnp
copying capnp\__init__.pxd -> build\lib.win-amd64-2.7\capnp
copying capnp\c++.capnp -> build\lib.win-amd64-2.7\capnp
copying capnp\schema.capnp -> build\lib.win-amd64-2.7\capnp
creating build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\helpers.pxd -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\non_circular.pxd -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\__init__.pxd -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\asyncHelper.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\capabilityHelper.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\checkCompiler.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\fixMaybe.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\rpcHelper.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\serialize.h -> build\lib.win-amd64-2.7\capnp\helpers
creating build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\capnp_cpp.pxd -> build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\schema_cpp.pxd -> build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\types.pxd -> build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\__init__.pxd -> build\lib.win-amd64-2.7\capnp\includes
creating build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\capnp.pxd -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\__init__.pxd -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\pickle_helper.py -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\__init__.py -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\capnp.pyx -> build\lib.win-amd64-2.7\capnp\lib
creating build\lib.win-amd64-2.7\capnp\templates
copying capnp\templates\module.pyx -> build\lib.win-amd64-2.7\capnp\templates
copying capnp\templates\setup.py.tmpl -> build\lib.win-amd64-2.7\capnp\templates
running build_ext
creating users
creating users\ivans_~1
creating users\ivans_~1\appdata
creating users\ivans_~1\appdata\local
creating users\ivans_~1\appdata\local\temp
creating users\ivans_~1\appdata\local\temp\tmpojkh0v
C:\Users\ivans_000\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tpc:\users\ivans_~1\appdata\local\temp\tmpojkh0v\vers.cpp /Fousers\ivans_~1\appdata\local\temp\tmpojkh0v\vers.obj --std=c++11
cl : Command line warning D9002 : ignoring unknown option '--std=c++11'
vers.cpp
c:\users\ivans_~1\appdata\local\temp\tmpojkh0v\vers.cpp(4) : fatal error C1083: Cannot open include file: 'capnp/common.h': No such file or directory
*WARNING* no libcapnp detected or rebuild forced. Will download and build it from source now. If you have C++ Cap'n Proto installed, it may be out of date or is not being detected. Downloading and building libcapnp may take a while.
fetching https://capnproto.org/capnproto-c++-0.5.3.1.tar.gz into c:\users\ivans_~1\appdata\local\temp\pip-build-7beli4\pycapnp\bundled
error: [Error 2] El sistema no puede encontrar el archivo especificado
----------------------------------------
Failed building wheel for pycapnp
Running setup.py clean for pycapnp
Failed to build pycapnp
Installing collected packages: pycapnp
Running setup.py install for pycapnp ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\ivans_~1\\appdata\\local\\temp\\pip-build-7beli4\\pycapnp\\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\ivans_~1\appdata\local\temp\pip-usnlti-record\install-record.txt --single-version-externally-managed --compile:
Compiling capnp/lib\capnp.pyx because it changed.
[1/1] Cythonizing capnp/lib\capnp.pyx
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\capnp
copying capnp\version.py -> build\lib.win-amd64-2.7\capnp
copying capnp\_gen.py -> build\lib.win-amd64-2.7\capnp
copying capnp\__init__.py -> build\lib.win-amd64-2.7\capnp
copying capnp\__init__.pxd -> build\lib.win-amd64-2.7\capnp
copying capnp\c++.capnp -> build\lib.win-amd64-2.7\capnp
copying capnp\schema.capnp -> build\lib.win-amd64-2.7\capnp
creating build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\helpers.pxd -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\non_circular.pxd -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\__init__.pxd -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\asyncHelper.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\capabilityHelper.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\checkCompiler.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\fixMaybe.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\rpcHelper.h -> build\lib.win-amd64-2.7\capnp\helpers
copying capnp\helpers\serialize.h -> build\lib.win-amd64-2.7\capnp\helpers
creating build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\capnp_cpp.pxd -> build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\schema_cpp.pxd -> build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\types.pxd -> build\lib.win-amd64-2.7\capnp\includes
copying capnp\includes\__init__.pxd -> build\lib.win-amd64-2.7\capnp\includes
creating build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\capnp.pxd -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\__init__.pxd -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\pickle_helper.py -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\__init__.py -> build\lib.win-amd64-2.7\capnp\lib
copying capnp\lib\capnp.pyx -> build\lib.win-amd64-2.7\capnp\lib
creating build\lib.win-amd64-2.7\capnp\templates
copying capnp\templates\module.pyx -> build\lib.win-amd64-2.7\capnp\templates
copying capnp\templates\setup.py.tmpl -> build\lib.win-amd64-2.7\capnp\templates
running build_ext
creating users\ivans_~1\appdata\local\temp\tmp9xtjg9
C:\Users\ivans_000\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tpc:\users\ivans_~1\appdata\local\temp\tmp9xtjg9\vers.cpp /Fousers\ivans_~1\appdata\local\temp\tmp9xtjg9\vers.obj --std=c++11
cl : Command line warning D9002 : ignoring unknown option '--std=c++11'
vers.cpp
c:\users\ivans_~1\appdata\local\temp\tmp9xtjg9\vers.cpp(4) : fatal error C1083: Cannot open include file: 'capnp/common.h': No such file or directory
*WARNING* no libcapnp detected or rebuild forced. Will download and build it from source now. If you have C++ Cap'n Proto installed, it may be out of date or is not being detected. Downloading and building libcapnp may take a while.
already have c:\users\ivans_~1\appdata\local\temp\pip-build-7beli4\pycapnp\bundled\capnproto-c++
error: [Error 2] El sistema no puede encontrar el archivo especificado
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\ivans_~1\\appdata\\local\\temp\\pip-build-7beli4\\pycapnp\\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\ivans_~1\appdata\local\temp\pip-usnlti-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\ivans_~1\appdata\local\temp\pip-build-7beli4\pycapnp\
I guess that the important line is the one that says:
c:\users\ivans_~1\appdata\local\temp\tmpojkh0v\vers.cpp(4) : fatal error C1083: Cannot open include file: 'capnp/common.h': No such file or directory
I get the same error when I try:
pip install pycapnp
Or even if I get pycapnp from https://github.com/jparyani/pycapnp.git and do:
pip install .
I suspect that the problem comes from a bad installation of the C++ Cap’n Proto Library (http://jparyani.github.io/pycapnp/install.html#c-cap-n-proto-library, which leads me to https://capnproto.org/install.html). I downloaded https://capnproto.org/capnproto-c++-win32-0.6.1.zip, and I can see that the missing file (common.h
) is there, inside the capnproto-c+±0.6.1\src\capnp folder.
I imagine I have to copy those files somewhere, but I don’t know where.
Any ideas?
Thanks!