I guess I’ll pickup the thread here. I’m trying to install htm.core on OSX 12.3 using conda. Close enough, right?
Steps:
conda create --name htm.core python=3.7
conda activate htm.core
conda install packaging cmake
As far as I can tell, this should be good to go, so I run python setup.py install --user --force
in the directory where I have cloned the htm.core repository. During the setup I get a large number of these warnings:
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
then this (only once):
CMake Warning (dev) at /opt/anaconda3/envs/htm.core/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
build/ThirdParty/pybind11/pybind11-src/CMakeLists.txt:98 (cmake_dependent_option)
This warning is for project developers. Use -Wno-dev to suppress it.
and then this a number of times for different reasons:
In file included from /htm.core/src/htm/encoders/SimHashDocumentEncoder.cpp:30:
/htm.core/build/ThirdParty/digestpp/digestpp-src/hasher.hpp:136:10: error: variable 'len' set but not used [-Werror,-Wunused-but-set-variable]
size_t len = 0;
Finally, it ends with this:
2 errors generated.
make[2]: *** [src/CMakeFiles/LibrarySource.dir/htm/encoders/SimHashDocumentEncoder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [src/CMakeFiles/LibrarySource.dir/htm/algorithms/TemporalMemory.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/LibrarySource.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 414, in <module>
getExtensionFiles(platform, build_type)
File "setup.py", line 241, in getExtensionFiles
generateExtensions(platform, build_type)
File "setup.py", line 305, in generateExtensions
subprocess.check_call(["cmake", "--build", ".", "--target", "install", "--config", build_type, "--", "-j", "4"])
File "/opt/anaconda3/envs/htm.core/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '4']' returned non-zero exit status 2.
When I run cmake --version
from a bash prompt I see this:
cmake version 3.22.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
I would appreciate any help getting htm.core installed, thanks!