Skip to content
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

Cannot install mediapipe 0.8.2 #19

Open
Traian3 opened this issue Sep 2, 2024 · 0 comments
Open

Cannot install mediapipe 0.8.2 #19

Traian3 opened this issue Sep 2, 2024 · 0 comments

Comments

@Traian3
Copy link

Traian3 commented Sep 2, 2024

As stated in the readme, I have tried to install the specified versions of the required packages. I managed to get everything except mediapipe 0.8.2.

I am using miniconda environment with python 3.7 and I installed bazel 3.4.0 to use for the mediapipe installation. I've searched and it looks like that is the version of bazel that was used when mediapipe released it's 0.8.2 version.

Unfortunately I cannot install that package. This is the error message:


mediapipe-0.8.2 % pip3 install .
Processing /Users/traian/Downloads/tello_git/mediapipe-0.8.2
Preparing metadata (setup.py) ... done
Requirement already satisfied: absl-py in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (2.1.0)
Requirement already satisfied: dataclasses in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (0.6)
Requirement already satisfied: numpy==1.19.3 in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (1.19.3)
Requirement already satisfied: opencv-python in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (4.10.0.84)
Requirement already satisfied: protobuf>=3.11.4 in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (4.24.4)
Requirement already satisfied: six in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (1.16.0)
Requirement already satisfied: wheel in /opt/miniconda3/envs/tello/lib/python3.7/site-packages (from mediapipe==0.8) (0.38.4)
Building wheels for collected packages: mediapipe
Building wheel for mediapipe (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 255
╰─> [11 lines of output]
running bdist_wheel
running build
running build_binary_graphs
generating binarypb: mediapipe/modules/face_landmark/face_landmark_front_cpu
Loading:
Loading: 0 packages loaded
ERROR: cannot load '@rules_foreign_cc//:workspace_definitions.bzl': no such file
INFO: Elapsed time: 0.215s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mediapipe
Running setup.py clean for mediapipe
Failed to build mediapipe
Installing collected packages: mediapipe
Running setup.py install for mediapipe ... error
error: subprocess-exited-with-error

× Running setup.py install for mediapipe did not run successfully.
│ exit code: 255
╰─> [12 lines of output]
running install
/opt/miniconda3/envs/tello/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build_binary_graphs
generating binarypb: mediapipe/modules/face_landmark/face_landmark_front_cpu
Loading:
Loading: 0 packages loaded
ERROR: cannot load '@rules_foreign_cc//:workspace_definitions.bzl': no such file
INFO: Elapsed time: 0.111s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> mediapipe

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.


Looks like I am missing this: rules_foreign_cc//:workspace_definitions.bzl, but I have no ideea where to get it from or how to continue.

Any help would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant