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

@bazel_tools BUILD error #4794

Closed
jenniferxuu opened this issue Sep 13, 2023 · 8 comments
Closed

@bazel_tools BUILD error #4794

jenniferxuu opened this issue Sep 13, 2023 · 8 comments
Assignees
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:c++ Issues specific to C++ framework in mediapipe type:build/install For Build and Installation issues

Comments

@jenniferxuu
Copy link

OS Platform and Distribution

Ubuntu 20.04

Compiler version

No response

Programming Language and version

C++

Installed using virtualenv? pip? Conda?(if python)

No response

MediaPipe version

No response

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

I cloned the most recent version of the MediaPipe repo. When I tried to build, it said I had errors regarding @bazel_tools and @platforms and linked a Git Issue. I followed the steps on the Git issue, but am still having trouble BUILDing.

Complete Logs

Starting local Bazel server and connecting to it...
ERROR: /home/jxu/.cache/bazel/_bazel_jxu/0e2caeac5a152f729bb471abb656425c/external/bazel_tools/platforms/BUILD:84:6: in alias rule @bazel_tools//platforms:linux: Constraints from @bazel_tools//platforms have been removed. Please use constraints from @platforms repository embedded in Bazel, or preferably declare dependency on https://github.com/bazelbuild/platforms. See https://github.com/bazelbuild/bazel/issues/8622 for details.
ERROR: /home/jxu/.cache/bazel/_bazel_jxu/0e2caeac5a152f729bb471abb656425c/external/bazel_tools/platforms/BUILD:84:6: Analysis of target '@bazel_tools//platforms:linux' failed
ERROR: /home/jxu/mediapipe-pytorch/examples/BUILD:3:10: While resolving toolchains for target //examples:pytorch_inference: Target @local_execution_config_platform//:platform was referenced as a platform, but does not provide PlatformInfo
@jenniferxuu jenniferxuu added the type:build/install For Build and Installation issues label Sep 13, 2023
@jenniferxuu
Copy link
Author

@ayushgdev Following up!

@kuaashish kuaashish assigned kuaashish and unassigned ayushgdev Sep 14, 2023
@kuaashish kuaashish added os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:c++ Issues specific to C++ framework in mediapipe labels Sep 14, 2023
@kuaashish
Copy link
Collaborator

@jenniferxuu,

Could you elaborate your query with complete details, Also, please let us know the complete steps you are following from the documentation. Thank you

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Sep 14, 2023
@jenniferxuu
Copy link
Author

jenniferxuu commented Sep 15, 2023

After cloning the MediaPipe repo, I tried to build an example. The error is as shown above on the logs. The error message linked this Git issue, so I followed the directions of running these commands but am still having the Bazel issue:
sed 's$@bazel_tools//platforms:(linux|osx|windows|android|freebsd|ios|os)$@platforms//os:\1$' -E -i **/*

sed 's$@bazel_tools//platforms:(cpu|x86_32|x86_64|ppc|arm|aarch64|s390x)$@platforms//cpu:\1$' -i -E **/*

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Sep 15, 2023
@jenniferxuu
Copy link
Author

@kuaashish

Following up!

@kuaashish
Copy link
Collaborator

@jenniferxuu,

May we kindly request your confirmation regarding whether you are actively seeking a resolution for the issue, or if it is no longer a concern from your perspective? If the matter persists, we would appreciate your assistance in providing us with comprehensive instructions outlining the steps you are following from the MediaPipe documentation to enable us to replicate the issue on our end.

Additionally, please furnish us with the following details: the version of Bazel you are currently utilising, the specific version of MediaPipe you have installed, and confirmation of your success in building the "Hello world" example as per the guidance provided here.

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Sep 19, 2023
@github-actions
Copy link

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label Sep 27, 2023
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

This issue was closed due to lack of activity after being marked stale for past 7 days.

@github-actions github-actions bot closed this as completed Oct 4, 2023
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@kuaashish kuaashish removed stat:awaiting response Waiting for user response stale labels Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:c++ Issues specific to C++ framework in mediapipe type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

3 participants