ModuleNotFoundError: No module named 'keras.src.engine' #5856
Labels
os:macOS
Issues on MacOS
stat:awaiting response
Waiting for user response
task:object detection
Issues related to Object detection: Track and label objects in images and video.
type:bug
Bug in the Source Code of MediaPipe Solution
type:modelmaker
Issues related to creation of custom on-device ML solutions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
macOS 15.3
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
Python 3.11
MediaPipe version
0.10.21
Bazel version
No response
Solution
Model Maker
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Importing
from mediapipe_model_maker import object_detector
raises an exceptionDescribe the expected behaviour
Importing should not raise an exception
Standalone code/steps you may have used to try to get what you need
pip install mediapipe-model-maker==0.2.1.3 && python -c "from mediapipe_model_maker import object_detector"
Other info / Complete Logs
pip install 'keras<3.0.0' mediapipe-model-maker
, fails with a dependency conflict.pip install mediapipe-model-maker==0.2.1.4
fully fails to run, which is why I show the example using0.2.1.3
.Repro Steps
Full error:
The text was updated successfully, but these errors were encountered: