Now I’m trying to build Nupic.core on Raspberry pi.
By using "python setup.py install"
I got the following error messge.
[ 11%] Completed ‘Swig’
[ 11%] Built target Swig
Makefile:149: recipe for target ‘all’ failed
make: *** [all] Error 2
Traceback (most recent call last):
File “setup.py”, line 58, in
File “/home/pi/nupic.core/bindings/py/setup.py”, line 201, in
getExtensionFiles(platform)
File “/home/pi/nupic.core/bindings/py/setup.py”, line 166, in getExtensionFiles
generateExtensions()
File “/home/pi/nupic.core/bindings/py/setup.py”, line 185, in generateExtensions
subprocess.check_call([“make”, “-j3”])
File “/home/pi/.pyenv/versions/2.7.13/lib/python2.7/subprocess.py”, line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘make’, ‘-j3’]’ returned non-zero exit status 2
And then: Developer Installation to o do incremental builds.
mkdir -p $NUPIC_CORE/build/scripts
cd $NUPIC_CORE/build/scripts …
Then I got the following message
See also “/home/pi/nupic.core/build/scripts/ThirdParty/Build/YamlStaticLib/CMakeFiles/CMakeOutput.log”.
external/CMakeFiles/YamlStaticLib.dir/build.make:107: recipe for target ‘ThirdParty/Stamp/YamlStaticLib/YamlStaticLib-configure’ failed
make[2]: *** [ThirdParty/Stamp/YamlStaticLib/YamlStaticLib-configure] Error 1
CMakeFiles/Makefile2:294: recipe for target ‘external/CMakeFiles/YamlStaticLib.dir/all’ failed
make[1]: *** [external/CMakeFiles/YamlStaticLib.dir/all] Error 2
I have checked many topics in this forum but I could not find how to fix.
Does anyone have an idea for solving this problem?
By using pyenv, Nupic core build is failed. Without using pyenv, I could build nupic core on a Raspbery Pi. I can import nupic.bindings in Python.
But, in the last step, when I try to install Nupic from source, I had a following error message.
pi@raspberrypi:~/nupic $ python setup.py develop --user
Traceback (most recent call last):
File “setup.py”, line 134, in
requirements = findRequirements()
File “setup.py”, line 121, in findRequirements
if nupicBindingsPrereleaseInstalled():
File “setup.py”, line 55, in nupicBindingsPrereleaseInstalled
if pkg_resources.parse_version(nupicDistribution.version).is_prerelease:
AttributeError: ‘tuple’ object has no attribute ‘is_prerelease’
I think this error would not be related to Raspbery Pi.
I’ m really wanted to run Nupic on a Rasberry Pi.
Any idea about this error?