-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
os:linux-non-armIssues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.platform:pythonMediaPipe Python issuesMediaPipe Python issuestype:build/installFor Build and Installation issuesFor Build and Installation issues
Description
OS Platform and Distribution
Linux
Compiler version
gcc
Programming Language and version
python 3.12
Installed using virtualenv? pip? Conda?(if python)
virtualenv + pip
MediaPipe version
0.10.31
Bazel version
No response
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
after updating mediapipe from 0.10.21 to 0.10.31 mediapipe.solutions does not exist anymore
Complete Logs
$ pip install mediapipe
Collecting mediapipe
Using cached mediapipe-0.10.31-py3-none-manylinux_2_28_x86_64.whl.metadata (9.7 kB)
Requirement already satisfied: absl-py~=2.3 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from mediapipe) (2.3.1)
Requirement already satisfied: numpy in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from mediapipe) (2.3.4)
Collecting sounddevice~=0.5 (from mediapipe)
Using cached sounddevice-0.5.3-py3-none-any.whl.metadata (1.6 kB)
Collecting flatbuffers~=25.9 (from mediapipe)
Using cached flatbuffers-25.9.23-py2.py3-none-any.whl.metadata (875 bytes)
Collecting CFFI>=1.0 (from sounddevice~=0.5->mediapipe)
Using cached cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (2.6 kB)
Collecting pycparser (from CFFI>=1.0->sounddevice~=0.5->mediapipe)
Using cached pycparser-2.23-py3-none-any.whl.metadata (993 bytes)
Using cached mediapipe-0.10.31-py3-none-manylinux_2_28_x86_64.whl (10.3 MB)
Using cached flatbuffers-25.9.23-py2.py3-none-any.whl (30 kB)
Using cached sounddevice-0.5.3-py3-none-any.whl (32 kB)
Using cached cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (219 kB)
Using cached pycparser-2.23-py3-none-any.whl (118 kB)
Installing collected packages: flatbuffers, pycparser, CFFI, sounddevice, mediapipe
Successfully installed CFFI-2.0.0 flatbuffers-25.9.23 mediapipe-0.10.31 pycparser-2.23 sounddevice-0.5.3
$ python
Python 3.12.12 (main, Oct 9 2025, 11:07:00) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mediapipe
>>> mediapipe.
mediapipe.Image( mediapipe.ImageFormat( mediapipe.taskswith mediapipe 0.10.21:
$ pip install mediapipe==0.10.21
Collecting mediapipe==0.10.21
Using cached mediapipe-0.10.21-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.7 kB)
Requirement already satisfied: absl-py in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from mediapipe==0.10.21) (2.3.1)
Requirement already satisfied: attrs>=19.1.0 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from mediapipe==0.10.21) (25.3.0)
Requirement already satisfied: flatbuffers>=2.0 in ./.venv/lib/python3.12/site-packages (from mediapipe==0.10.21) (25.9.23)
Collecting jax (from mediapipe==0.10.21)
Using cached jax-0.8.2-py3-none-any.whl.metadata (13 kB)
Collecting jaxlib (from mediapipe==0.10.21)
Using cached jaxlib-0.8.2-cp312-cp312-manylinux_2_27_x86_64.whl.metadata (1.3 kB)
Requirement already satisfied: matplotlib in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from mediapipe==0.10.21) (3.10.5)
Collecting numpy<2 (from mediapipe==0.10.21)
Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting opencv-contrib-python (from mediapipe==0.10.21)
Using cached opencv_contrib_python-4.12.0.88-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (19 kB)
Collecting protobuf<5,>=4.25.3 (from mediapipe==0.10.21)
Using cached protobuf-4.25.8-cp37-abi3-manylinux2014_x86_64.whl.metadata (541 bytes)
Requirement already satisfied: sounddevice>=0.4.4 in ./.venv/lib/python3.12/site-packages (from mediapipe==0.10.21) (0.5.3)
Collecting sentencepiece (from mediapipe==0.10.21)
Using cached sentencepiece-0.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (10 kB)
Requirement already satisfied: CFFI>=1.0 in ./.venv/lib/python3.12/site-packages (from sounddevice>=0.4.4->mediapipe==0.10.21) (2.0.0)
Collecting ml_dtypes>=0.5.0 (from jax->mediapipe==0.10.21)
Using cached ml_dtypes-0.5.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (8.9 kB)
INFO: pip is looking at multiple versions of jax to determine which version is compatible with other requirements. This could take a while.
Collecting jax (from mediapipe==0.10.21)
Using cached jax-0.8.1-py3-none-any.whl.metadata (13 kB)
Collecting jaxlib (from mediapipe==0.10.21)
Using cached jaxlib-0.8.1-cp312-cp312-manylinux_2_27_x86_64.whl.metadata (1.3 kB)
Collecting jax (from mediapipe==0.10.21)
Using cached jax-0.8.0-py3-none-any.whl.metadata (13 kB)
Collecting jaxlib (from mediapipe==0.10.21)
Using cached jaxlib-0.8.0-cp312-cp312-manylinux_2_27_x86_64.whl.metadata (1.3 kB)
Collecting jax (from mediapipe==0.10.21)
Using cached jax-0.7.2-py3-none-any.whl.metadata (13 kB)
Collecting jaxlib (from mediapipe==0.10.21)
Using cached jaxlib-0.7.2-cp312-cp312-manylinux_2_27_x86_64.whl.metadata (1.3 kB)
Collecting jax (from mediapipe==0.10.21)
Using cached jax-0.7.1-py3-none-any.whl.metadata (13 kB)
Collecting jaxlib (from mediapipe==0.10.21)
Using cached jaxlib-0.7.1-cp312-cp312-manylinux_2_27_x86_64.whl.metadata (1.3 kB)
Collecting opt_einsum (from jax->mediapipe==0.10.21)
Using cached opt_einsum-3.4.0-py3-none-any.whl.metadata (6.3 kB)
Requirement already satisfied: scipy>=1.12 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from jax->mediapipe==0.10.21) (1.16.3)
Requirement already satisfied: contourpy>=1.0.1 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (1.3.3)
Requirement already satisfied: cycler>=0.10 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (4.60.1)
Requirement already satisfied: kiwisolver>=1.3.1 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (1.4.8)
Requirement already satisfied: packaging>=20.0 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (25.0)
Requirement already satisfied: pillow>=8 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (12.0.0)
Requirement already satisfied: pyparsing>=2.3.1 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (3.2.3)
Requirement already satisfied: python-dateutil>=2.7 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from matplotlib->mediapipe==0.10.21) (2.9.0.post0)
INFO: pip is looking at multiple versions of opencv-contrib-python to determine which version is compatible with other requirements. This could take a while.
Collecting opencv-contrib-python (from mediapipe==0.10.21)
Using cached opencv_contrib_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)
Requirement already satisfied: pycparser in ./.venv/lib/python3.12/site-packages (from CFFI>=1.0->sounddevice>=0.4.4->mediapipe==0.10.21) (2.23)
Requirement already satisfied: six>=1.5 in /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages (from python-dateutil>=2.7->matplotlib->mediapipe==0.10.21) (1.17.0)
Using cached mediapipe-0.10.21-cp312-cp312-manylinux_2_28_x86_64.whl (35.6 MB)
Using cached numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.0 MB)
Using cached protobuf-4.25.8-cp37-abi3-manylinux2014_x86_64.whl (294 kB)
Using cached jax-0.7.1-py3-none-any.whl (2.8 MB)
Using cached jaxlib-0.7.1-cp312-cp312-manylinux_2_27_x86_64.whl (81.2 MB)
Using cached opencv_contrib_python-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (69.1 MB)
Using cached sentencepiece-0.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.4 MB)
Using cached ml_dtypes-0.5.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (5.0 MB)
Using cached opt_einsum-3.4.0-py3-none-any.whl (71 kB)
Installing collected packages: sentencepiece, protobuf, opt_einsum, numpy, opencv-contrib-python, ml_dtypes, jaxlib, jax, mediapipe
Attempting uninstall: protobuf
Found existing installation: protobuf 6.33.1
Not uninstalling protobuf at /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages, outside environment /home/makefu/r/ham/favsync/.venv
Can't uninstall 'protobuf'. No files were found to uninstall.
Attempting uninstall: numpy
Found existing installation: numpy 2.3.4
Not uninstalling numpy at /nix/store/7jyfz4ryyi6b5rdlk0yzd3hszx008lsv-python3-3.12.12-env/lib/python3.12/site-packages, outside environment /home/makefu/r/ham/favsync/.venv
Can't uninstall 'numpy'. No files were found to uninstall.
Attempting uninstall: mediapipe
Found existing installation: mediapipe 0.10.31
Uninstalling mediapipe-0.10.31:
Successfully uninstalled mediapipe-0.10.31
Successfully installed jax-0.7.1 jaxlib-0.7.1 mediapipe-0.10.21 ml_dtypes-0.5.4 numpy-1.26.4 opencv-contrib-python-4.11.0.86 opt_einsum-3.4.0 protobuf-4.25.8 sentencepiece-0.2.1
$ python
Python 3.12.12 (main, Oct 9 2025, 11:07:00) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mediapipe
AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
>>> mediapipe.
mediapipe.CalculatorGraph( mediapipe.ValidatedGraphConfig(
mediapipe.GraphInputStreamAddMode( mediapipe.calculators
mediapipe.Image( mediapipe.model_ckpt_util
mediapipe.ImageFormat( mediapipe.packet_creator
mediapipe.ImageFrame( mediapipe.packet_getter
mediapipe.Matrix( mediapipe.resource_util
mediapipe.Packet( mediapipe.solutions
mediapipe.Timestamp( mediapipe.tasks
Metadata
Metadata
Assignees
Labels
os:linux-non-armIssues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices.platform:pythonMediaPipe Python issuesMediaPipe Python issuestype:build/installFor Build and Installation issuesFor Build and Installation issues