-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
ERROR: An error occurred during the fetch of repository '...' #2828
Comments
Hi @KenTee920806, Have you tried the workarounds mentioned in the above query after trying the |
Hi @sgowroji thanks for your reply. Yes, I have try multiple times with different version of SDK and NDK after the I am looking for the Android mediapipe pose solutions. But first I want to experiment with one of the mediapipe android example, and install it on a device, but it failed to build. |
Following is my steps for building example of mediapipe on Android. Clone the mediapipe master branch version
Check mediapipe installation by running the Hello World! in C++ example
Run bazel clean before start to build the Android app example
Check Java Runtime, Android SDK and Android NDK version
Set $ANDROID_HOME and $ANDROID_NDK_HOME
Build the Android mediapipe pose example app
`DEBUG: Rule 'rules_foreign_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c2cdcf55ffaf49366725639e45dedd449b8c3fe22b54e31625eb80ce3a240f1e" INFO: Elapsed time: 21.396s |
Hi @KenTee920806, Assuming its more a network related issue kindly try with any vpn as mentioned here . You can also try the workarounds mentioned here #1275 (comment) |
Hi @sgowroji, I try to workarounds the vpn method. Then I executed the build command: I have two questions at here:
I try to use vpn ip address and the port number at this comment to build and i get the following error: Thanks for your help! |
Hi @sgowroji, for the vpn method, I found that I forget to set the Android SDK / NDK environment path, after finished to set the enviroment path, and run the build command, i got the following error. |
Hi @sgowroji, I try to workarounds #1275 (comment) to reinstall my xcode, and still get the same build error. Reinstall Xcode
Check Xcode version
Run bazel clean before start to build the Android app example
Build the Android mediapipe pose example app
Error Log message
INFO: Elapsed time: 40.508s |
hi @KenTee920806, Can you please try with the latest release to build and install and we also updated our recommended versions of sdk, ndk version and bazel 4.2.1 . |
I also have the same problem `C:\mediapipe\mediapipe>bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu Available commands: bootstrap, channel, complete, fetch, get, install, java, java-home, launch, list, publish, resolve, setup, uninstall, update Type coursier command --help for help on an individual command
|
@TechnicalMeaw |
Thanks for clarifying, I was trying it from last two days... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
System information
Describe the problem:
I am facing an issue similar to #2629. But instead of 'XNNPACK', I get different fetching repo error each time I try to build android example.
e.g.
An error occurred during the fetch of repository 'XNNPACK',
An error occurred during the fetch of repository 'android_opencv'
An error occurred during the fetch of repository 'maven'
...
I am not located at China, and pretty sure that I have a stable network.
#3
I try to workaround the mentioned in 54#issuecomment
which suggested by @jiuqiant but it did not work.
I try to reinstall my xcode which suggested by this post bazel-12471
but still did not work too.
I am follow the instruction on mediapipe android step by step.mediapipe on android
I also try the different version of android SDK (above 28.0.3) and different version of android NDK (between 18 and 21),
but still get the same result.
I can successfully build the hello world and c++ example, but for android, I am stuck. Following is one of the build error message.
`bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu
Starting local Bazel server and connecting to it...
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'pybind11' because it already exists.
WARNING: API level 30 specified by android_ndk_repository 'androidndk' is not available. Using latest known API level 29
INFO: Repository XNNPACK instantiated at:
/Users/kentee/Desktop/playground/projects/mediapipe/WORKSPACE:409:14: in
/private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/tensorflow/workspace2.bzl:1095:21: in workspace
/private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/tensorflow/workspace2.bzl:130:20: in _tf_repositories
/private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:113:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
/private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl:66:35: in
INFO: Repository 'XNNPACK' used the following cache hits instead of downloading the corresponding file.
If the definition of 'XNNPACK' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'XNNPACK':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/org_tensorflow/third_party/repo.bzl", line 53, column 33, in _tf_http_archive_impl
ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/XNNPACK/temp11309223108423078435/28407b24f04694a1353ffca91248e89bc250eb5b.zip to /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/XNNPACK/temp11309223108423078435: null
INFO: Repository android_opencv instantiated at:
/Users/kentee/Desktop/playground/projects/mediapipe/WORKSPACE:218:13: in
Repository rule http_archive defined at:
/private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
Internal error thrown during build. Printing stack trace: java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=//mediapipe/gpu:pixel_buffer_pool_util, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}' (requested by nodes 'ConfiguredTargetKey{label=//mediapipe/gpu:gpu_buffer_multi_pool, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}', 'ConfiguredTargetKey{label=//mediapipe/objc:mediapipe_framework_ios, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}')
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:513)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.google.devtools.build.lib.rules.objc.CompilationSupport.getFeatureConfiguration(CompilationSupport.java:582)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:273)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:377)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1025)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1087)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:973)
at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:81)
at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:42)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:374)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:193)
at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:938)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1013)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:371)
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:438)
... 7 more
INFO: Elapsed time: 14.875s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (174 packages loaded, 12898 targets configured)
Fetching @remotejdk11_macos; fetching 5s
Fetching @maven; Resolving and fetching the transitive closure of 29 artifact(s).. 5s
Fetching ...jdk11_macos; Extracting /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/remotejdk11_macos/temp11420809637277323898/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz 4s
Fetching ...f9d482/external/XNNPACK; Extracting /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/XNNPACK/temp11309223108423078435/28407b24f04694a1353ffca91248e89bc250eb5b.zip
Internal error thrown during build. Printing stack trace: java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=//mediapipe/gpu:pixel_buffer_pool_util, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}' (requested by nodes 'ConfiguredTargetKey{label=//mediapipe/gpu:gpu_buffer_multi_pool, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}', 'ConfiguredTargetKey{label=//mediapipe/objc:mediapipe_framework_ios, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}')
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:513)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.google.devtools.build.lib.rules.objc.CompilationSupport.getFeatureConfiguration(CompilationSupport.java:582)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:273)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:377)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1025)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1087)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:973)
at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:81)
at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:42)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:374)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:193)
at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:938)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1013)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:371)
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:438)
... 7 more
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=//mediapipe/gpu:pixel_buffer_pool_util, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}' (requested by nodes 'ConfiguredTargetKey{label=//mediapipe/gpu:gpu_buffer_multi_pool, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}', 'ConfiguredTargetKey{label=//mediapipe/objc:mediapipe_framework_ios, config=BuildConfigurationValue.Key[5d8be7d3b63d22369e641ffa4417bfdc2125aa849a4e329efa43184a4871cf75]}')
at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:513)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.google.devtools.build.lib.rules.objc.CompilationSupport.getFeatureConfiguration(CompilationSupport.java:582)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:273)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:377)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1025)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1087)
at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:973)
at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:81)
at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:42)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:374)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:193)
FAILED: Build did NOT complete successfully (174 packages loaded, 12898 targets configured)
Fetching @remotejdk11_macos; fetching 5s
Fetching @maven; Resolving and fetching the transitive closure of 29 artifact(s).. 5s
Fetching ...jdk11_macos; Extracting /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/remotejdk11_macos/temp11420809637277323898/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz 4s
Fetching ...f9d482/external/XNNPACK; Extracting /private/var/tmp/_bazel_kentee/685fff2cb2612012745612d7b2f9d482/external/XNNPACK/temp11309223108423078435/28407b24f04694a1353ffca91248e89bc250eb5b.zip`
Thank you. Your help will be greatly appreciated.
The text was updated successfully, but these errors were encountered: