Issues on htm.core Installation

If you were copy/pasting actual text instead of pictures someone might be tempted to even do a google search(*) of the relevant error message.

It seems to do with needing to install python build wheel or python sources

(*) Which by the way, did you tried it?

Hi,
sorry for not pasting the actual text here.
I did try to install but it still doesn’t work.
Here is my original output error text.

[ 91%] Built target gtest
Consolidate compiler generated dependencies of target gtest_main
[ 95%] Built target gtest_main
Consolidate compiler generated dependencies of target mnist_example
[100%] Built target mnist_example
– Results from external build:
– common_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/external/common
– common_LIBRARIES = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libcommon.a
– yaml_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libyaml/libyaml-src/include
– yaml_LIBRARIES = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libyaml/libyaml-build/libyaml.a
– yaml_DEFINE = YAML_PARSER_libYaml
– eigen_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/eigen/eigen-src
– gtest_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/gtest/googletest-src/googletest/include
– gtest_LIBRARIES = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/lib/libgtest$<$CONFIG:Debug:d>.a
– pybind11_SOURCE_DIR = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/pybind11/pybind11-src
– pybind11_BINARY_DIR = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/pybind11/pybind11-build
– mnist_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/mnist_data/mnist-src/include
– mnist_SOURCE_DIR = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/mnist_data/mnist-src
– cereal_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/cereal/cereal-src/include
– digestpp_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/digestpp/digestpp-src
– cpp-httplib_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/cpp-httplib/cpp-httplib-src
– sqlite3_INCLUDE_DIRS = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/sqlite3/sqlite3-src
– sqlite3_LIBRARIES = /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libsqlite3.a
– Configuring htm_core src
– MERGE_STATIC_LIBRARIES LIB_TARGET=htm_core, STATIC_LIBS = htm_core_solo;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libyaml/libyaml-build/libyaml.a;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libsqlite3.a;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libcommon.a
– MERGE_STATIC_LIBRARIES: htm_core_solo
– MERGE_STATIC_LIBRARIES: /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libyaml/libyaml-build/libyaml.a - non-target lib.
– MERGE_STATIC_LIBRARIES: /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libsqlite3.a - non-target lib.
– MERGE_STATIC_LIBRARIES: /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libcommon.a - non-target lib.
– ExpandStaticLib: LIB_TARGET=htm_core_shared, src-lib=/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libyaml/libyaml-build/libyaml.a
– ExpandStaticLib: LIB_TARGET=htm_core_shared, src-lib=/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libsqlite3.a
– ExpandStaticLib: LIB_TARGET=htm_core_shared, src-lib=/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libcommon.a
– Configuring htm_core tests
– In Test, External_Includes: /Users/szekhai/Desktop/htm.core-master/build/ThirdParty/libyaml/libyaml-src/include;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/eigen/eigen-src;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/mnist_data/mnist-src/include;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/cereal/cereal-src/include;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/digestpp/digestpp-src;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/cpp-httplib/cpp-httplib-src;/Users/szekhai/Desktop/htm.core-master/build/ThirdParty/sqlite3/sqlite3-src;/Users/szekhai/Desktop/htm.core-master/external/common;/Users/szekhai/Desktop/htm.core-master/external/common/include
– Packaging version: v2.1.16 in CPACK
– Configuring Python interface
– installing in /Users/szekhai/Desktop/htm.core-master/build/Release
– Copied .py sources to /Users/szekhai/Desktop/htm.core-master/build/Release/distr/src/htm
– pybind11 v2.6.2
CMake Warning (dev) at /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.24/Modules/CMakeDependentOption.cmake:89 (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.

– Configuring done
CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in bindings/py/cpp_src/CMakeLists.txt:
Imported target “pybind11::module” includes non-existent path

"/Users/szekhai/opt/anaconda3/python.app/Contents/include/python3.9"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

– Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File “setup.py”, line 414, in
getExtensionFiles(platform, build_type)
File “setup.py”, line 239, in getExtensionFiles
generateExtensions(platform, build_type)
File “setup.py”, line 301, in generateExtensions
configure(platform, build_type)
File “setup.py”, line 373, in configure
subprocess.check_call([“cmake”,BUILD_TYPE , PY_VER, REPO_DIR])
File “/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py”, line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘-DCMAKE_BUILD_TYPE=Release’, ‘-DBINDING_BUILD=Python3’, ‘/Users/szekhai/Desktop/htm.core-master’]’ returned non-zero exit status 1.

Ok, I installed htm.core with pip in a standard virtual env ( I don’t use anaconda)

python3 -m venv htm
source htm/bin/activate

Then see the htm.core README.md
I first ran:

pip install setuptools packaging

The line in README.md

python setup.py install --user --force

Didn’t work.
All I had to do to “fix” it was to remove the --user option from the command. That looks for libraries elsewhere, not in the virtual env where the pip install put them.

I guess adding --user to above pip install would work too, but I want installing in the freshly created venv

If the above won’t fix it then google for

Imported target “pybind11::module” includes non-existent path

There-s quite a bit of feedback on that