-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named 'mediapipe.python._framework_bindings' #5858
Comments
Hi @PranayLohia, Could you please provide additional details, such as whether the macOS is Silicon-based or Intel-based? Additionally, could you share the Linux version? If possible, providing the complete error log would be helpful for us to better understand and reproduce the issue if necessary. Thank you!! |
It is Apple silicon M3. Slight correction, second one is Chrome Remote Desktop where I am getting the same error in Colab run. 4 frames /usr/local/lib/python3.10/dist-packages/mediapipe_model_maker/python/vision/image_classifier/init.py in /usr/local/lib/python3.10/dist-packages/mediapipe_model_maker/python/vision/image_classifier/image_classifier.py in /usr/local/lib/python3.10/dist-packages/mediapipe/init.py in /usr/local/lib/python3.10/dist-packages/mediapipe/python/init.py in ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings' NOTE: If your import is failing due to a missing package, you can To view examples of installing some common dependencies, click the
|
Hi @PranayLohia, There is a known issue with MediaPipe Model Maker on macOS, specifically with the Silicon chip. This is due to "tensorflow/text" discontinuing support for two platforms, which affects one of the dependencies related to text-based tasks in MediaPipe Model Maker. For more details, you may refer to this issue #5856 (comment). As a workaround, compatible with Python 3.9, you can install an earlier version (0.2.1.3) of MediaPipe Model Maker using the following command:
Please give this a try, as it is the only known workaround. Let us know if we can assist you further. Thank you!! |
I get following issue post installation `--------------------------------------------------------------------------- 2 frames ModuleNotFoundError: No module named 'mediapipe' 4 frames /usr/local/lib/python3.9/dist-packages/mediapipe_model_maker/python/vision/image_classifier/init.py in /usr/local/lib/python3.9/dist-packages/mediapipe_model_maker/python/vision/image_classifier/image_classifier.py in /usr/local/lib/python3.9/dist-packages/mediapipe/init.py in /usr/local/lib/python3.9/dist-packages/mediapipe/python/init.py in ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'` comes back. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
MacOS/Linux
Python Version
3.10
MediaPipe Model Maker version
0.2.1.4
Task name (e.g. Image classification, Gesture recognition etc.)
Model training
Describe the actual behavior
Getting above error while trying: from mediapipe_model_maker import text_classifier
Describe the expected behaviour
No error
Standalone code/steps you may have used to try to get what you need
!python3.10 -m pip install mediapipe-model-maker from mediapipe_model_maker import text_classifier
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: