superuser789 / MediaPipe-on-RaspberryPi

MediaPipe on Raspberry Pi
41 stars 3 forks source link

Import error in mediapipe-rpi4 #9

Open Shubhs0411 opened 2 years ago

Shubhs0411 commented 2 years ago

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'

dhanushnayak commented 2 years ago

facing same issue

NowLoadY commented 2 years ago

same

wicoben commented 2 years ago

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

NowLoadY commented 2 years ago

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

Ricso's solution, have you tried?

https://github.com/superuser789/MediaPipe-on-RaspberryPi/issues/10#issuecomment-1312527982

mcwhorpj commented 2 years ago

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