Hi,
when trying to import the mediapipe python package (import mediapipe as mp) I get this error:
ModuleNotFoundError: No module named ‘mediapipe.python._framework_bindings’
I have already done ‘pip install mediapipe’ and set the python 64-bit module path in the TD settings to my anaconda modules folder, since that is where pip seemed to have installed it into. Yet even after restarting several times, I still get the error. I am not sure what I should do. I am running macOS Monterey. This wasn’t a problem on Windows at all, I didn’t even have to install mediapipe.
Yes, I had already followed both those tutorials you linked. I also tried installing a pyenv directly in the project folder, tried using TD-Pip
(the creator said it only works on Windows), and some other things that I can’t recall right now. I still get the same error.
I am trying to run in it on windows, but this is the error I get outputted…. Maybe you could share your .fox file? Although I think something isn’t working within the media pipe installation?
Thanks for your reply!
Yes, yes, I put mediapipe-silicon/python10 because I had the same error with Monterrey at M1 (like @viviensheep) in TD. When I made a new virtual environment with the pyhton9 (version of TD), and installed mediapipe-silicon again, the script load without error. I don’t understand the error.
Hey everyone,
Had this issue yesterday. It was mainly an issue of package versions. Went back to my conda terminal, and uninstalled and reinstalled all packages.
You should notice versions will actually update accordingly to whatever python version you’re using in your virtual environment (they were previously all the latest versions for me, hence the incompatibility).
Also just like @JetXS says, make sure you have an Execute DAT in your network with the correct paths to your virtual envs Library, DLLs and site-packages in the “onStart()” function.
On project load, this script should run and will allow you to script with Mediapipe.
For a quick start with the library, look up Brian Chung’s GitHub for examples!