-
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 encountered during installation #581
Comments
Can you do The downloading is taken care by the build tool Bazel and I feel sorry that MediaPipe doesn't have any control on it. Moreover, VPN is preferred if you are in mainland China. See #3 for more detail. |
Well, I tried your method, but it didn't work. But I do suspect that this may be a network error, so I tried all kinds of ways to set up the proxy, and the result was useless. Finally, I suddenly remembered that bazel's download program seemed to be run by Java, and the Java virtual machine does not use any agents by default. Unless... I set the JVM parameters manually. After checking the help documents of bazel, I found that the JVM parameters can be set through ` -- host_jvm_args'. So I finally ran mediapipe successfully with such a string of code.
Maybe this issue can help other Chinese developers. Thank you for your help. Oh, by the way, my English is not very good. So this text is generated by translation software. If you are offended, please forgive me. |
Thanks for posting your solution! It will definitely benefit the other developers! |
I tried the code you mentioned with the --host_jvm_args settings, but it still doesn't work. Error still occured about fetching repository 'org_tensorflow' Did you just run the code and it works? Is there anything else I should do before running the code? |
Hello, I'm glad to be able to help you. |
Thanks for your timely response! I do have no proxy, no wonder it doesn't work. |
in macos 10.15.6, mediapipe commit-id: a7225b9 must use two --host_jvm_args like this:
will take proxy setting effective. Combine in one --host_jvm_args like: hope this can help someone face same issue. |
Hi, could u share your v2ray server information to me? thanks |
I'm afraid not. You should also know that it is illegal in China. So, although I'd like to help you, it can't. Otherwise, I might suffer a disaster. But I can give you some tutorials. If you follow this document, it may only take a few hours (and a little money to buy the server) to have your own private server. |
thanks u very much, I'll try to set up a proxy and then try it again. May I ask you another question? I built the Docker environment of mediapipe, and when i run the commond: |
Unfortunately, I don't know how to do it. But I know some other information. I don't know if it will help you. |
Hi, thank u for your help. |
I'm glad I can help you. You need to do 4 steps:
Then, you can use the proxy! |
thanks u very much!!I successfully implemented the use of proxies in Ubuntu through the method you mentioned. but i used a Docker image to install mediapipe, and i also can't use proxies in Docker. So my final approach is to manually download the source file, set up a file sharing server, and change the URLs in the workspace to implement it. Thanks again for your help |
if you network blocked by the Great Firewall. you can change your repositories in WORKSPACE file like this. |
I followed the instructions and tried to install and run mediapipe in Ubuntu. The previous work was very smooth. But there was an error when I finally ran Hello world.
Error report:
I think this may be caused by the failure of downloading some files, so I tried to access one of the links, and the address couldn't be accessed as expected. At first, I thought it might be my own network reason, but I still couldn't access it after opening the agent. So I reported the issue.
The text was updated successfully, but these errors were encountered: