ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to fix ImportError: No module named mediapipe? [closed]

asked 2022-06-23 20:01:11 -0500

vkb gravatar image

My Jetson Nano shows no module named media pipe with ROS but running with CMD. How to fix it? Thank you!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by vkb
close date 2022-06-28 21:25:04.785938

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-24 03:33:42 -0500

ljaniec gravatar image

I found this repository, where this problem is mentioned:

Concretely:

Can you try it out?

edit flag offensive delete link more

Comments

Thanks. But only running with CMD, not to run with ROS.

vkb gravatar image vkb  ( 2022-06-24 08:51:03 -0500 )edit

I am not sure what you mean - do you want to use it in your ROS code and it is import of mediapipe module that is failing, or you wanted to use it in command line and it failed? Or something else entirely? Correct me if I am wrong :)

ljaniec gravatar image ljaniec  ( 2022-06-24 09:46:47 -0500 )edit

I want to use it in my ROS code but it is import media module is failing. I think it is wrong path. Can you help me fix it. Thank you.

vkb gravatar image vkb  ( 2022-06-24 09:54:05 -0500 )edit

Please add more details in your question, then maybe we can provide some hints how to solve it :) Describe your environment (hardware, OS, ROS version, used commands, your goals and what & how you tried to achieve them etc.).

ljaniec gravatar image ljaniec  ( 2022-06-26 14:50:33 -0500 )edit

I used JetsonNano, ROS 1. I want to use mediapipe to control my robot. Mediapipe run in Opencv version 4.5.5 (Python3) but not run in OpenCV version 3.4 (Python2, ROS1).

vkb gravatar image vkb  ( 2022-06-27 03:33:09 -0500 )edit

ROS 1 Noetic or earlier?I think it will be an earlier version of ROS since Python 2 is no longer supported as of 2020.... Different version of Python (2 and 3) could be the biggest roadblock there :( Are you constrained with using Python 2? Cannot you upgrade your project to Python 3.8?

ljaniec gravatar image ljaniec  ( 2022-06-27 04:34:05 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-06-23 20:01:11 -0500

Seen: 2,558 times

Last updated: Jun 24 '22