-
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
Fail to pull in MediaPipe's external dependencies due to unstable internet connection #3
Comments
Hi Long, the error you pasted above is more like a network issue. More specifically, your machine is not able to download the pre-compiled OpenCV android SDK from https://sourceforge.net/projects/opencvlibrary/files/4.0.1/opencv-4.0.1-android-sdk.zip/download. Could you verify that you can access https://sourceforge.net/projects/opencvlibrary/files/4.0.1/opencv-4.0.1-android-sdk.zip/download? If so, can you retry the build command? |
i can acces your website.
I am in China. I can't open the VPN recent. |
Hi Long, sorry about the inconvenience. |
My windows PC can opens VPN, but the Ubuntu can't.so I think I'll download the libraries which project needs from Windows and put them into the Ubuntu to setup? |
Yes, it's possible to cache the external dependencies and use the cached version later. We are testing the following workflow: # On the workstation that has the full access to the Internet, fetch all the dependencies to a cache directory by doing:
$ git clone https://github.com/google/mediapipe.git
$ cd mediapipe
$ bazel fetch //... --keep_going --repository_cache=<your cache directory>
# Then, copy the cache directory to the machine that has restricted Internet access and do:
$ bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/objectdetectiongpu --distdir=<your cache directory> If the workflow works, we may host an archive that contains all the MediaPipe external dependencies for the users in China. Stay tuned. |
thanks.I hope have a good news and can you @me when you update the new version? |
@jiuqiant it seems like this would be a common issue for projects using Bazel. There are similar issues on the TensorFlow and Bazel trackers; we should check in with them and see if there's an existing workaround or plan. |
@chenloveheimei and I tested the current version of MediaPipe. We verified that MediaPipe demo apps can be successfully built in China now. However, due to the unstable/slow internet connection, we prefer to ask Bazel to cache the external repositories locally and search for the local archives before accessing the network. For the users with unstable/slow internet connection, you may need to try the following build command several times to download all the needed external repositories: $ bazel build -c opt --config=android_arm64 \
--distdir=<your cache directory> \
--repository_cache=<your cache directory> \
--keep_going \
mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu |
I am now able to build object and face detection demos from Shenzhen, China. The problem is solved. |
Any others work but the 'opencv-3.4.3-android-sdk.zip'. |
hi, thanks for the above hints. I want to install MediaPipe on CentOS7, but the internet connection error occurs ( the following is part of the warnings and errors on PC fetching(*** is my username):
|
I had a similar issues like as you encounter issues what about above. |
HI,could i download the dependencies via firefox and the copy it into the fire storage ? |
if you network blocked by the Great Firewall. you can change your repositories in WORKSPACE file like this. |
May I ask which file path is modified specifically? |
#git clone https://github.com/google/mediapipe.git
#cd mediapipe
#vi WORKSPACE //this WORKSPACE file
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年9月16日(星期四) 下午4:29
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [google/mediapipe] Fail to pull in MediaPipe's external dependencies due to unstable internet connection (#3)
如果你的网络被防火长城。 您可以更改您的存储库工作区中的文件。
存储库=
(
“https://maven.aliyun.com/repository/google”,
“https://maven.aliyun.com/repository/central”,
“https://maven.aliyun.com/repository/public”,
),
祝你好运。
May I ask which file path is modified specifically?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
…classification Android image classification
Hello,My name is Long.
Description:
version:newest(2aaf469)
bazel:0.27.0
ubuntu:16.04
ndk:r17c
opencv:3.4.1(from source code include origin and contrib)
this is my Error:
long@long:/media/long/data/android/mediapipe$ bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu
ERROR: /media/long/data/android/mediapipe/third_party/BUILD:24:1: no such package '@android_opencv//': java.io.IOException: Error downloading [https://sourceforge.net/projects/opencvlibrary/files/4.0.1/opencv-4.0.1-android-sdk.zip/downl
oad] to /home/long/.cache/bazel/_bazel_long/2855d1951dc2684b853376a37e34b96b/external/android_opencv/download.zip: connect timed out and referenced by '//third_party:opencv'
ERROR: Analysis of target '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/facedetectiongpu:facedetectiongpu' failed; build aborted: Analysis failed
INFO: Elapsed time: 16.197s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (156 packages loaded, 6354 targets configured)
currently loading: @org_tensorflow//tensorflow/lite/experimental/ruy
Fetching @com_google_common_flogger; fetching 7s
Fetching @com_google_common_flogger_system_backend; fetching 7s
Can I use version 3.4.1 of opencv?
Is it possible not to upgrade?
thx.
The text was updated successfully, but these errors were encountered: