-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
issue: pyodide.loadPackage behind proxy not working, env variables not considered #3304
Comments
PR Welcome! |
@jabbasj are you using |
I had my daemon configured to use the proxy based on this guide: https://docs.docker.com/config/daemon/proxy/
But based on your feedback, I tried passing --build-arg HTTP_PROXY="proxy.yourdoman.tld" --build-arg HTTPS_PROXY="proxy.yourdoman.tld" --build-arg http_proxy="proxy.yourdoman.tld" --build-arg https_proxy="proxy.yourdoman.tld" explicitly and also tried modifying No luck :( |
Also have this issue, my walk around is to make a base build image with pyodide micropip downloaded, and then use the base image to build final image behind proxy. |
Ya that's fair, you can also just copy the pre-downloaded files directly into the static directory as a work-around but I chose to simply disable this feature entirely since executing python generated by the LLM in the browser isn't very useful for my use-case (this doesn't affect the ability to use Tools) |
[> > Also have this issue, my walk around is to make a base build image with pyodide micropip downloaded, and then use the base image to build final image behind proxy.
Maybe you can try something like: https://github.com/gajus/global-agent?](https://github.com/pyodide/pyodide/issues/4891#issuecomment-2198004864) global-agent works for me,modify package.json |
It seems like ENV Variables HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy are not respected here... so I am not able to build my own docker image behind a proxy
=> ERROR [build 14/14] RUN npm run build 7.7s
The text was updated successfully, but these errors were encountered: