moveit / moveit_tutorials

A sphinx-based centralized documentation repo for MoveIt
https://moveit.github.io/moveit_tutorials/
BSD 3-Clause "New" or "Revised" License
463 stars 692 forks source link

I am getting the folllowing issue for moveit_ros_planning_interface. ROS DISTRO - noetic #775

Closed Kishor-Ramesh closed 1 year ago

Kishor-Ramesh commented 1 year ago

CMake Error at /home/kishor/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Python3 (missing: NumPy Development Development.Module Development.Embed) (found version "3.8.10") Call Stack (most recent call first): /home/kishor/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /home/kishor/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/FindPython/Support.cmake:3766 (find_package_handle_standard_args) /home/kishor/.local/lib/python3.8/site-packages/cmake/data/share/cmake-3.26/Modules/FindPython3.cmake:551 (include) /opt/ros/noetic/share/eigenpy/cmake/python.cmake:170 (find_package) /opt/ros/noetic/share/eigenpy/cmake/eigenpyConfig.cmake:144 (FINDPYTHON) CMakeLists.txt:41 (find_package)

welcome[bot] commented 1 year ago

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

rhaschke commented 1 year ago

You are using a custom cmake version (3.26 installed in ~/.local/lib/python3.8/site-packages/cmake). The default for Focal/Noetic is cmake 3.16.3 from /usr/bin/cmake. Are you using a python virtualenv?

Kishor-Ramesh commented 1 year ago

I am using windows WSL2 btw. what do you mean by python virtual environment? (sorry, i am not well versed with the terminologies as I am from a hardware background)

Plus, the default version for cmake is 3.26 when I completely ireinstall cmake.

Kishor-Ramesh commented 1 year ago

it builds upto 29 packages post which catkin fails to build

image

Kishor-Ramesh commented 1 year ago

image sharing the error messages image as well just in case

rhaschke commented 1 year ago

How did you install cmake? I guess via pip. That's not the recommended way to manage a ROS system. Please follow the install instructions, which suggests rosdep to install required dependencies.

rhaschke commented 1 year ago

Probably your pip-installed cmake still works, but you are missing numpy now. Either try pip install numpy or use the recommended installation process.

Kishor-Ramesh commented 1 year ago

i used sudo apt install cmake

and I already have numpy installed. i even tried spcifiying the python3 path as flag to 'catkin_make'. but the error still occurs

Kishor-Ramesh commented 1 year ago

How did you install cmake? I guess via pip. That's not the recommended way to manage a ROS system. Please follow the install instructions, which suggests rosdep to install required dependencies.

i used the same link, yet the build failes at 'moveit_ros_planning_interface'

rhaschke commented 1 year ago

Probably you installed cmake via pip in the past then.

I used sudo apt install cmake

Where is cmake found? What is the result of which cmake? I guess, ~/.local/bin/cmake, which is wrong.

Obviously, you screwed your Ubuntu installation. If you are not able to recover, I suggest starting over and installing Ubuntu from scratch. Closing here as off-topic.

Kishor-Ramesh commented 1 year ago

how do I install cmake over again? and what should be the result of 'which cmake'?

simonschmeisser commented 1 year ago

It should start with /usr/

You can also check that your PATH and PYTHONPATH do not contain .local