MediaPipe-on-RaspberryPi icon indicating copy to clipboard operation
MediaPipe-on-RaspberryPi copied to clipboard

ModuleNotFoundError debian 10

Open JorianRennen opened this issue 4 years ago • 2 comments
trafficstars

Hi everyone!

First of all, I want to thank the creators of this package for saving me so much time! The package works great on the standard raspberry pi os, but when I try to get it working on the same pi but with debian I got the following error: ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings I don't know where I should start, since everything worked fine on the raspberry pi os. I think it has something to do with some missing packages, but I really don't know.

I appreciate any help!!! Jorian

JorianRennen avatar Jun 27 '21 13:06 JorianRennen

Hi. Thank you for trying it out. I am sorry to say that the current mediapipe package has been specifically built for Raspberry Pi OS 32 bit only. I'll add the support for more OS's & versions in future. To run on debian, you have to build it from source. Follow either official guide or take a look here.

superuser789 avatar Jun 27 '21 15:06 superuser789

Hi everyone!

First of all, I want to thank the creators of this package for saving me so much time! The package works great on the standard raspberry pi os, but when I try to get it working on the same pi but with debian I got the following error: ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings I don't know where I should start, since everything worked fine on the raspberry pi os. I think it has something to do with some missing packages, but I really don't know.

I appreciate any help!!! JorianRennen Presuming you installed the package from the RPi 3 repository and it installed correctly without error, find the site-packages directory into which mediapipe was installed and list the directory "mediapipe.python" you should see a "_framework_bindings..." file. It will probably be: "_framework_bindings.cpython-37m-arm-linux-gnueabihf.so" That is the name of the file; however, if your error is exactly as you wrote with the name being "mediapipe.python._framework_bindings" then I don't believe the install was successful. The file name I mentioned as what you probably have is for python 3.7. Normally when pip tries to install the mediapipe package if the environment doesn't match what the .whl is requiring it won't install. As superuser789 indicated, you might have to build it from sources Even though raspbian is a debian derivative, not everything is the same. Good luck.

johncblacker avatar Sep 29 '21 14:09 johncblacker