You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default Python version in CMake is Default. When turning on the GTSAM_BUILD_PYTHON flag, the Default values causes an error with Pybind11.
Found PythonInterp: /home/varun/.pyenv/shims/python (found version "3.8.5")
Found PythonLibs: /usr/lib/libpython3.8.so (found version "3.8.5")
CMake Error at wrap/pybind11/tools/pybind11Tools.cmake:16 (find_package):
find_package called with invalid argument "Default"
Call Stack (most recent call first):
wrap/pybind11/CMakeLists.txt:33 (include)
pybind11 v2.5.dev1
Setting the Python version to a specific version, such as 3.8, fixes the issue, so the proposed solution would be to set the default to empty ("") and use the CMake variables from Python to set the default version value. @dellaert@ProfFan
Steps to reproduce
Use fresh build directory.
Set the GTSAM_BUILD_PYTHON flag to ON.
Run cmake ..
Expected behavior
CMake should not throw an error and should configure the build without issues.
Environment
OS: Arch Linux
Clang compiler
The text was updated successfully, but these errors were encountered:
Description
The default Python version in CMake is
Default
. When turning on theGTSAM_BUILD_PYTHON
flag, theDefault
values causes an error with Pybind11.Setting the Python version to a specific version, such as
3.8
, fixes the issue, so the proposed solution would be to set the default to empty ("") and use the CMake variables from Python to set the default version value. @dellaert @ProfFanSteps to reproduce
GTSAM_BUILD_PYTHON
flag toON
.cmake ..
Expected behavior
CMake should not throw an error and should configure the build without issues.
Environment
The text was updated successfully, but these errors were encountered: