GitHub user dosubot[bot] added a comment to the discussion: docker installation 
from github fails

<!-- Answer -->
Even though curl works, pip (and uv pip) can behave differently with proxies. 
In Superset's Docker setup, pip relies on proxy variables from the environment, 
but sometimes it needs both uppercase and lowercase variants (HTTP_PROXY, 
http_proxy, HTTPS_PROXY, https_proxy), and occasionally a pip.conf file with 
explicit proxy settings. Also, running Docker with `--iptables=false` is known 
to break container networking for some tools, so pip may fail even if curl 
succeeds.

Try these steps:
1. Make sure your `docker/.env` includes all proxy variants (both upper and 
lower case), and add `NO_PROXY`/`no_proxy` for internal hosts.
2. Create a `/etc/pip.conf` file inside the container with:
   ```
   [global]
   proxy = http://proxy-c04.xxx.local:3128
   ```
3. If possible, avoid running Docker with `--iptables=false`—this can break pip 
networking even if curl works.
4. As a workaround, you can pre-download the required wheels for setuptools and 
wheel, mount them into the container, and install them locally.

If you’re mounting local directories (like `./docker:/app/docker`), try 
removing those mounts to rule out script/image mismatches.

These steps address known causes where pip fails but curl works, especially in 
Docker/proxy environments 
([reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/pip-install.sh#L18-L64)).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/89aed739-abb2-40c2-ab3b-36f615aa35c9?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Even%20though%20curl%20works%2C%20pip%20%28and%20uv%20pip%29%20can%20behave%20differently%20with%20proxies.%20In%20Superset%27s%20Docker%20setup%2C%20pip%20relies%20on%20proxy%20variables%20from%20the%20environment%2C%20but%20sometimes%20it%20needs%20both%20uppercase%20and%20lowercase%20variants%20%28HTTP_PROXY%2C%20http_proxy%2C%20HTTPS_PROXY%2C%20https_proxy%29%2C%20and%20occasionally%20a%20pip.conf%20file%20with%20explicit%20proxy%20settings.%20Also%2C%20running%20Docker%20with%20%60--iptables%3Dfalse%60%20is%20known%20to%20break%20container%20networking%20for%20some%20tools%2C%20so%20pip%20may%20fail%20even%20if%20curl%20succeeds.%0A%0ATry%20these%20steps%3A%0A1.%20Make%20sure%20your%20%60docker/.env%60%20includes%20all%20proxy%20variants%20%28bot
 
h%20upper%20and%20lower%20case%29%2C%20and%20add%20%60NO_PROXY%60/%60no_proxy%60%20for%20internal%20hosts.%0A2.%20Create%20a%20%60/etc/pip.conf%60%20file%20inside%20the%20container%20with%3A%0A%20%20%20%60%60%60%0A%20%20%20%5Bglobal%5D%0A%20%20%20proxy%20%3D%20http%3A//proxy-c04.xxx.local%3A3128%0A%20%20%20%60%60%60%0A3.%20If%20possible%2C%20avoid%20running%20Docker%20with%20%60--iptables%3Dfalse%60%E2%80%94this%20can%20break%20pip%20networking%20even%20if%20curl%20works.%0A4.%20As%20a%20workaround%2C%20you%20can%20pre-download%20the%20required%20wheels%20for%20setuptools%20and%20wheel%2C%20mount%20them%20into%20the%20container%2C%20and%20install%20them%20locally.%0A%0AIf%20you%E2%80%99re%20mounting%20local%20directories%20%28like%20%60./docker%3A/app/docker%60%29%2C%20try%20removing%20those%20mounts%20to%20rule%20out%20script/image%20mismatches.%0A%0AThese%20steps%20address%20known%20causes%20where%20pip%20fails%20but%20curl%20works%2C%20especially%20in%20Docker/proxy%20environment
 
s%20%28%5Breference%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/pip-install.sh%23L18-L64%29%29.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37610)

GitHub link: 
https://github.com/apache/superset/discussions/37610#discussioncomment-15692443

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to