salt icon indicating copy to clipboard operation
salt copied to clipboard

pip state: proxy not supported when using bin_env

Open otrempe opened this issue 13 years ago • 6 comments

Installing a pip package behind a proxy works fine. However, when specifying a bin_env, the proxy seems to be ignored.

buildbot/master.sls

buildbot_master_venv:
    virtualenv.managed:
        - name: /opt/buildbot/venv

buildbot:
    pip.installed:
        - proxy: {{pillar['http_proxy']}}
        - bin_env: /opt/buildbot/venv/bin/pip

Calling state.highstate for a Ubuntu host gives

 ----------
    State: - pip
    Name:      buildbot
    Function:  installed
        Result:    False
        Comment:   Failed to install package buildbot. Error: Downloading/unpacking buildbot
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement buildbot
No distributions at all found for buildbot
Storing complete log in /root/.pip/pip.log
        Changes:

otrempe avatar Nov 19 '13 16:11 otrempe

Thanks for pointing this out. I'm guessing that edge case just wasn't handled properly for the bin_env case.

basepi avatar Nov 19 '13 21:11 basepi

I'm running into the same issue. Hasn't this issue already been resolved?

L4rS6 avatar Jun 30 '17 10:06 L4rS6

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Nov 14 '18 14:11 stale[bot]

@saltstack/team-triage

basepi avatar Nov 14 '18 22:11 basepi

Thank you for updating this issue. It is no longer marked as stale.

stale[bot] avatar Nov 14 '18 22:11 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Jan 09 '20 13:01 stale[bot]