MRPT / mvsim

Vehicle and mobile robotics simulator. C++ & Python API. Use it as a standalone application or via ROS 1 or ROS 2
https://mvsimulator.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
289 stars 43 forks source link

Unsuitable Python Version on Build #39

Closed adastec-can closed 1 month ago

adastec-can commented 8 months ago

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!

jlblancoc commented 8 months ago

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

adastec-can commented 8 months ago

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.

jlblancoc commented 1 month ago

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.