-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Proxy problem #281
Comments
At the moment, it is not possible to pass arbitrary options to bazel, so please update this line. Line 185 in 92dd555
|
sorry i do not understand you very well python build.py build --desktop cpu --include_opencv_libs -v -c --host_jvm_args "-DsocksProxyHost=127.0.0.1" --host_jvm_args "-DsocksProxyPort=7890" and the commands += ['build', '-c', self.compilation_mode] it still not work |
I mean, try updating it as follows. diff --git a/build.py b/build.py
index ff6f0de..0691a52 100644
--- a/build.py
+++ b/build.py
@@ -179,7 +179,7 @@ class BuildCommand(Command):
return self.system == 'Windows'
def _build_common_commands(self):
- commands = ['bazel']
+ commands = ["bazel", "--host_jvm_args", "\"-DsocksProxyHost=127.0.0.1\"", "--host_jvm_args", "\"-DsocksProxyPort=7890\""]
if self._is_windows():
# limit the path length for Windows |
Well ,sorry for bothering ,the problem seem to be settled (showings successfully and then i stucked at nuget (i'll settle it later))but i do not know the reason and I 've just tried your suggestions ,it still don't work with subprocess.CalledProcessError: Command '['bazel', '--host_jvm_args', '"-DsocksProxyHost=127.0.0.1"', '--host_jvm_args', '"-DsocksProxyPort=7890"', '--output_user_root', 'C:/_bzl', 'build', '-c', 'opt', '--action_env', 'PYTHON_BIN_PATH=C://Users//ASUS//anaconda3//envs//mediapipe//python.exe', '//mediapipe_api:mediapipe_proto_srcs']' returned non-zero exit status 37. |
Please always share all the logs, because we can't tell by looking at just the last line of the log. commands = ["bazel", "--host_jvm_args", "-DsocksProxyHost=127.0.0.1", "--host_jvm_args", "-DsocksProxyPort=7890"] |
System information
windows 10 21H1
desktop cpu
3.7.2
3.9.6
none
Describe the problem
HOW to build with proxy in socks
Steps to reproduce the issue
Provide the exact sequence of commands / steps that you executed before running into the problem.
finished
python build.py build --desktop cpu --include_opencv_libs -v
i changed the
python_bin_path
inbuild.py
for it cannot read myPYTHON_BUILD_PATH
then it stucked at the
fetch bazel
Full logs
Additional context
Add any other context about the problem here.
I KNOW the reason but cannot fix it
👍 [reason] I 'm from china using the clash proxy
and the py ran the
bazel ----
while in my former commandi use the
using the proxy
so how to use it in the build.py?
The text was updated successfully, but these errors were encountered: