Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ModuleNotFoundError: No module named 'numpy'" error while running <colcon build --mixin release> #922

Open
Venkatag14 opened this issue Jul 16, 2024 · 0 comments

Comments

@Venkatag14
Copy link

Venkatag14 commented Jul 16, 2024

Description

I'm trying to install moveit2 with ros2 Humble Distro on Ubuntu22.04. While running colcon build --mixin release, i got this error:

Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'numpy'
CMake Error at /opt/ros/humble/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:204 (message):
execute_process(/usr/local/bin/python3.6 -c 'import
numpy;print(numpy.get_include())') returned error code 1
Call Stack (most recent call first):
/opt/ros/humble/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
/opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
CMakeLists.txt:117 (rosidl_generate_interfaces)

I have numpy installed and tried installing it globally using this command <python3 -m pip install -U numpy>

Your environment

  • ROS Distro: Humble
  • OS Version: e.g. Ubuntu 22.04
  • Source build
  • If binary, which release version?
  • If source, which git commit or tag?

Steps to reproduce

Tell us how to reproduce this issue. Attempt to provide a working demo, perhaps using Docker.

Expected behaviour

Tell us what should happen

Backtrace or Console output

Use gist.github.com to copy-paste the console output or segfault backtrace using gdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant