CI fails on macOS (late january 2023)
GiulioRomualdi opened this issue · comments
The CI on macOS is currently failing with the following error
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found YARP: /Users/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/install/deps/lib/cmake/YARP (found version "3.7.0")
CMake Error at /usr/local/Cellar/cmake/3.25.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_EXECUTABLE Python3_INCLUDE_DIRS
-- Configuring incomplete, errors occurred!
Python3_LIBRARIES Interpreter Development Development.Module
See also "/Users/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/build/CMakeFiles/CMakeOutput.log".
Development.Embed) (Required is at least version "3.6")
See also "/Users/runner/work/bipedal-locomotion-framework/bipedal-locomotion-framework/build/CMakeFiles/CMakeError.log".
Reason given by package:
Interpreter: Wrong version for the interpreter "/usr/local/bin/python"
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.25.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/FindPython/Support.cmake:2984 (find_package_handle_standard_args)
cmake/FindPython3.cmake:[38](https://github.com/ami-iit/bipedal-locomotion-framework/actions/runs/4053623191/jobs/6974459708#step:19:39)9 (include)
cmake/BipedalLocomotionFrameworkFindDependencies.cmake:56 (find_package)
cmake/BipedalLocomotionFrameworkDependencies.cmake:[52](https://github.com/ami-iit/bipedal-locomotion-framework/actions/runs/4053623191/jobs/6974459708#step:19:53) (checkandset_dependency)
CMakeLists.txt:21 (include)
Accordingly to this the python version installed is 3.11
@traversaro do you have any hints?
On the specific problem, I think /usr/local/bin/python
is the one installed by setup-python
and not the one by homebrew, as in
More in general, I do not think it is worth to spend time testing Homebrew in general, and more in particular Homebrew with Python, but this is my personal opinion.