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

java.io.IOException: Error downloading ...: Read timed out #384

Closed
PallaviPandurangPawar opened this issue Dec 18, 2021 · 9 comments
Closed
Labels
host:windows Issue that occurs when host OS is Windows type:build/install Cannot build/install the plugin

Comments

@PallaviPandurangPawar
Copy link

Sir/ma'am,
Can you please give a solution to solve this error.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2): Windows 10
  • Target (e.g. desktop cpu, android arm64): desktop
  • Bazel version: 4.2
  • Python version: 3.9
  • GCC/G++ version:
  • Unity version: 2019.4.15
  • Android NDK version (if building for Android):
  • Xcode version (if building for iOS):

Describe the problem
Facing issue during the installation

Steps to reproduce the issue
Provide the exact sequence of commands / steps that you executed before running into the problem.

set BAZEL_VC= C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC

set BAZEL_VS= C:\Program Files (x86)\Microsoft Visual Studio\2019\Community

set BAZEL_VC_FULL_VERSION=14.29.30133

set BAZEL_WINSDK_FULL_VERSION=10.0.19041.0

pip install virtualenv

virtualenv env

env\Scripts\activate

pip install numpy

dir

set PYTHON_BIN_PATH=
C:\Users\pawar\link\MediaPipeUnityPlugin\env\Scripts\python.exe

python build.py build --desktop cpu --include_opencv_libs -v

Full logs

Additional context
Add any other context about the problem here.

ERROR: An error occurred during the fetch of repository 'com_google_mediapipe':
Traceback (most recent call last):
File "C:/_bzl/sidmbi55/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/google/mediapipe/archive/v0.8.9.tar.gz] to C:/_bzl/sidmbi55/external/com_google_mediapipe/temp9506750363564723181/v0.8.9.tar.gz: Read timed out
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/_bzl/sidmbi55/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/google/mediapipe/archive/v0.8.9.tar.gz] to C:/_bzl/sidmbi55/external/com_google_mediapipe/temp9506750363564723181/v0.8.9.tar.gz: Read timed out
ERROR: error loading package '': Encountered error while reading extension file 'apple/repositories.bzl': no such package '@build_bazel_rules_apple//apple': no such package '@com_google_mediapipe//third_party': java.io.IOException: Error downloading [https://github.com/google/mediapipe/archive/v0.8.9.tar.gz] to C:/_bzl/sidmbi55/external/com_google_mediapipe/temp9506750363564723181/v0.8.9.tar.gz: Read timed out
INFO: Elapsed time: 280.968s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Fetching @build_bazel_rules_apple; Restarting. 238s
Traceback (most recent call last):
File "C:\Users\pawar\link\MediaPipeUnityPlugin\build.py", line 451, in
Argument().command().run()
File "C:\Users\pawar\link\MediaPipeUnityPlugin\build.py", line 113, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\pawar\link\MediaPipeUnityPlugin\build.py", line 53, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Python\Python39\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//pawar//ink//MediaPipeUnityPlugin//env//Scripts//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.

@codinglover0111
Copy link

did you install opencv? if you not then type
python build.py build --desktop cpu --opencv=cmake -v

@homuler
Copy link
Owner

homuler commented Dec 19, 2021

Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/google/mediapipe/archive/v0.8.9.tar.gz] to C:/_bzl/sidmbi55/external/com_google_mediapipe/temp9506750363564723181/v0.8.9.tar.gz: Read timed out

There is a problem with your network.
Can you download https://github.com/google/mediapipe/archive/v0.8.9.tar.gz ?
If so, try again.
Otherwise, see google-ai-edge/mediapipe#581 and #281.

@homuler homuler changed the title MediaPipeUnityPlugin Installation Issue -- for windows java.io.IOException: Error downloading ...: Read timed out Dec 19, 2021
@PallaviPandurangPawar
Copy link
Author

Sir , Sorry to bother you again I tried to run the code again in good network but still facing issues.

Traceback (most recent call last):
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 451, in
Argument().command().run()
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 120, in run
self._run_command(self._build_proto_dlls_commands())
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 53, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Python\Python39\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'nuget install -o .nuget -Source https://api.nuget.org/v3/index.json' returned non-zero exit status 1.

@homuler
Copy link
Owner

homuler commented Dec 20, 2021

The important part of the log has been omitted, but I guess you've not finished the 8th step.
https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#windows-10

@PallaviPandurangPawar
Copy link
Author

Sir I have changed the nuget path and sha256 checksum but facing these errors.
Sir how can I get the proper solution for these errors?

Server terminated abruptly (error code: 2, error message: 'Stream removed', log file: 'c:_bzl\hlvrulrq\server\jvm.out')

Traceback (most recent call last):
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 451, in
Argument().command().run()
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 113, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 53, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Python\Python39\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Python//Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 37.

@homuler
Copy link
Owner

homuler commented Dec 21, 2021

@PallaviPandurangPawar Please retry it a few times.
If the problem persists, run python build.py build --desktop cpu --include_opencv_libs -vv (note -vv) and share the full log, please. I'd also like to know your CPU and memory info.

P.S.

I have changed the nuget path and sha256 checksum

If you mean you've changed OpenCV path, it's OK but you don't need to do that.

@homuler
Copy link
Owner

homuler commented Dec 21, 2021

can you share your anydesk id on [email protected]

@gabbar69 It looks to me like you're trying to run a scam. Can you tell me what the purpose is?

Repository owner deleted a comment from gabbar69 Dec 22, 2021
@PallaviPandurangPawar
Copy link
Author

Sir, I resolved my nuget issue and tried to run the file again but got these errors.
This time it is showing that build is successfully completed but getting this errors.
Sir please guide me to solve these errors.

INFO: Analyzed target //mediapipe_api:opencv_libs (0 packages loaded, 2 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:opencv_libs up-to-date:
bazel-bin/mediapipe_api/opencv_libs.zip
INFO: Elapsed time: 97.004s, Critical Path: 4.06s
INFO: 2 processes: 1 internal, 1 local.
INFO: Build completed successfully, 2 total actions
DEBUG (build.py): Unarchiving 'bazel-bin\mediapipe_api\opencv_libs.zip' to 'build\Plugins\OpenCV'...
INFO (build.py): Built native libraries for Desktop
INFO (build.py): Installing built resources...
DEBUG (build.py): Copying 'build' to 'Packages\com.github.homuler.mediapipe\Runtime' recursively...
DEBUG (build.py): Running cp -r build/* Packages\com.github.homuler.mediapipe\Runtime
'cp' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 451, in
Argument().command().run()
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 176, in run
self._copytree(_BUILD_PATH, _INSTALL_PATH)
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 77, in _copytree
self._run_command(['cp', '-r', f'{source}/', dest])
File "C:\Users\pawar\bridge\MediaPipeUnityPlugin\build.py", line 53, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Python\Python39\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'cp -r build/
Packages\com.github.homuler.mediapipe\Runtime' returned non-zero exit status 1.

@homuler
Copy link
Owner

homuler commented Jan 10, 2022

'cp' is not recognized as an internal or external command,

Probably you've not installed MSYS2 properly.
Read step 1 again carefully.

See also #128

@homuler homuler closed this as completed Jan 10, 2022
@homuler homuler added host:windows Issue that occurs when host OS is Windows type:build/install Cannot build/install the plugin labels Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
host:windows Issue that occurs when host OS is Windows type:build/install Cannot build/install the plugin
Projects
None yet
Development

No branches or pull requests

3 participants