mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

When I was building the AAR file, it displayed Fetching @maven all the time

Open ShaunMaple opened this issue 2 years ago • 3 comments

OS Platform and Distribution

window10

Compiler version

No response

Programming Language and version

python 3.10.9

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

Conda

MediaPipe version

No response

Bazel version

5.3.2

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

Android SDK 30 , NDK 21.3.6528147

Android AAR (if android)

Yes

OpenCV version (if running on desktop)

3.4.10

Describe the problem

When I execute "bazel build -c opt --strip=ALWAYS --action_env PYTHON_BIN_PATH="D:\\Develop\\anaconda3\\python.exe" --fat_apk_cpu=arm64-v8a,armeabi-v7a  Mediapipe/examples/android/SRC/Java/com/Google/mediapipe/apps/build_aar_face: build the aar mediapipe_face_detection," Always get stuck on "Fetching @maven; Resolving and fetching the transitive closure of 29 artifac ", then the following error will appear. Since I am in China now, I have tried to replace the download address of maven in "workspace" as Alibaba Cloud image. I have also tried to use vpn, but neither of these two methods can work. In addition, I have the "activity-1.2.2.aar" file mentioned in the error locally. I am very confused about what is the problem and who can help me

Complete Logs

INFO: Repository maven instantiated at:
  D:/develop/mediapipe1/mediapipe/WORKSPACE:444:14: in <toplevel>
  C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/rules_jvm_external/defs.bzl:105:19: in maven_install
Repository rule coursier_fetch defined at:
  C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/rules_jvm_external/coursier.bzl:1009:33: in <toplevel>
INFO: Repository 'maven' used the following cache hits instead of downloading the corresponding file.
 * Hash 'babba8a144533f041a4de791d32de00552e31fa56231f241560a2ce6a7a72702' for https://github.com/coursier/coursier/releases/download/v2.0.7/coursier.jar
 * Hash '5c0a0a3ea600f302ee458b30317425dd9632d1ad8882259fcaf4e9b868b2b1ef' for https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64
 * Hash 'af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44' for https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
 * Hash 'a51d36968dcbdeabb3142c6f5cf9b401a65dc3a095f3144bd0c118d5bb192753' for https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe
If the definition of 'maven' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'maven':
   Traceback (most recent call last):
        File "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/rules_jvm_external/coursier.bzl", line 862, column 40, in _coursier_fetch_impl
                artifact.update({"sha256": shas[str(repository_ctx.path(file))]})
Error: key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: D:/develop/mediapipe1/mediapipe/WORKSPACE:444:14: fetching coursier_fetch rule //external:maven: Traceback (most recent call last):
        File "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/rules_jvm_external/coursier.bzl", line 862, column 40, in _coursier_fetch_impl
                artifact.update({"sha256": shas[str(repository_ctx.path(file))]})
Error: key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: D:/develop/mediapipe1/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face/BUILD:3:14: //mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face:mediapipe_face_detection_android_lib depends on @maven//:com_google_code_findbugs_jsr305 in repository @maven which failed to fetch. no such package '@maven//': key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: D:/develop/mediapipe1/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face/BUILD:3:14: //mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face:mediapipe_face_detection_android_lib depends on @maven//:com_google_flogger_flogger in repository @maven which failed to fetch. no such package '@maven//': key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: D:/develop/mediapipe1/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face/BUILD:3:14: //mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face:mediapipe_face_detection_android_lib depends on @maven//:com_google_flogger_flogger_system_backend in repository @maven which failed to fetch. no such package '@maven//': key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: D:/develop/mediapipe1/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face/BUILD:3:14: //mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face:mediapipe_face_detection_android_lib depends on @maven//:com_google_guava_guava in repository @maven which failed to fetch. no such package '@maven//': key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: D:/develop/mediapipe1/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face/BUILD:3:14: //mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face:mediapipe_face_detection_android_lib depends on @maven//:androidx_lifecycle_lifecycle_common in repository @maven which failed to fetch. no such package '@maven//': key "C:/users/yang dada/_bazel_yang dada/e5li6e5p/external/maven/v1/https/maven.aliyun.com/repository/google/androidx/activity/activity/1.2.2/activity-1.2.2.aar" not found in dictionary
ERROR: Analysis of target '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/build_aar_face:mediapipe_face_detection' failed; build aborted:
INFO: Elapsed time: 28.842s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)

ShaunMaple avatar Jul 25 '23 01:07 ShaunMaple

@ShaunMaple,

Thank you for bringing out to our notice, This issue is already known to us And we are working towards fix. We will let you know once any update becomes available from our end.

kuaashish avatar Aug 01 '23 07:08 kuaashish

Hi @ShaunMaple,

Could you please confirm if you still require assistance with this matter? If so, we would like to inform you that AAR solutions for app development are no longer under maintenance, and we anticipate that the reported issue will not be resolved.

Instead, we recommend utilizing our new Face Detection Task API. This API is an enhanced version of our legacy Face Detection Solution. Further details can be found here.

Furthermore, please refer to the associated Overview documentation and implementation instructions for Android on this page.

Should you encounter any challenges during the implementation process, we kindly request you to report them to us promptly for further assistance.

Thank you!

kuaashish avatar Feb 02 '24 07:02 kuaashish

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[bot] avatar Feb 10 '24 01:02 github-actions[bot]

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

github-actions[bot] avatar Feb 17 '24 01:02 github-actions[bot]

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

google-ml-butler[bot] avatar Feb 17 '24 01:02 google-ml-butler[bot]