mvsim icon indicating copy to clipboard operation
mvsim copied to clipboard

Unsuitable Python Version on Build

Open adastec-can opened this issue 1 year ago • 2 comments

Hi,

I cloned the repo (develop branch) into my workspace and trying to make a build. I am getting the following error during build, can you help? I am running ROS1 on Ubuntu 20.04.

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find PythonInterp: Found unsuitable version "3.8.10", but required is at least "3.9" (found /usr/bin/python3) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.16/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /opt/ros/noetic/share/pybind11_catkin/cmake/FindPythonLibsNew.cmake:98 (find_package) /opt/ros/noetic/share/pybind11_catkin/cmake/pybind11Tools.cmake:50 (find_package) /opt/ros/noetic/share/pybind11_catkin/cmake/pybind11Common.cmake:180 (include) /opt/ros/noetic/share/pybind11_catkin/cmake/pybind11Config.cmake:248 (include) modules/CMakeLists.txt:74 (find_package)

Thank you very much!

adastec-can avatar Jan 30 '24 11:01 adastec-can

I'll investigate it...

But for the time being, just uncheck this cmake flag using ccmake or cmake-gui in the build/mvsim directory: MVSIM_WITH_PYTHON=OFF

jlblancoc avatar Jan 30 '24 11:01 jlblancoc

Hi,

Thanks for the quick response! That solved it for me. But as you said, maybe taking a look at it may prevent further issues for others.

Cheers.

adastec-can avatar Jan 30 '24 12:01 adastec-can

I'm closing this one since I think the issue does not affect default ROS1 installations, since we couldn't replicate the problem. Feel free to reopen if someone else finds it and can give instructions to replicate.

jlblancoc avatar Aug 11 '24 21:08 jlblancoc