superuser789 / MediaPipe-on-RaspberryPi

MediaPipe on Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import error in mediapipe-rpi4

Shubhs0411 opened this issue · comments

Error occurred while importing mediapipe library.
Python==3.9.2 , mediapipe-rpi4==0.8.8
Traceback (most recent call last):
File "/home/pi/Desktop/ifm/Pose_Application.py", line 10, in
import mediapipe as mp
File "/usr/local/lib/python3.9/dist-packages/mediapipe/init.py", line 16, in
from mediapipe.python import *
File "/usr/local/lib/python3.9/dist-packages/mediapipe/python/init.py", line 17, in
from mediapipe.python._framework_bindings import resource_util
ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'

facing same issue

commented

same

Have you solved the problem,Could you tell me how to solve it?

commented

Have you solved the problem,Could you tell me how to solve it?

Ricso's solution, have you tried?

#10 (comment)

Have you solved the problem,Could you tell me how to solve it?

Ricso's solution, have you tried?

#10 (comment)

I am still having difficulty. When I do NowLoadY suggested method, followed by Risco's added suggestion (both from the link above), I am indeed able to install mediapipe on the Raspberry Pi 4 running either 32 bit or 64 bit version of Bullseye. The issue is, during the mediapipe installation, it upgrades my opencv from 4.5.1 to 4.6.0. The new version of opencv which is installed is NOT enabled for gstreamer, hence you can not use the Raspberry Pi camera in opencv any more. So, the goal of having mediapipe running on Bullseye and having use of the Raspberry Pi camera remains an illusive goal. Any help would be greatly appreciated.
Paul McWhorter