Skip to content

Fix no http proxy case#1

Merged
stankevich merged 4 commits intovoxpupuli:masterfrom
MITx:master
Nov 2, 2012
Merged

Fix no http proxy case#1
stankevich merged 4 commits intovoxpupuli:masterfrom
MITx:master

Conversation

@apenney
Copy link
Copy Markdown
Contributor

@apenney apenney commented Oct 17, 2012

You cannot set the http_proxy environment to false or it breaks pip completely and the virtualenv fails:

/Stage[main]/Python::Config/Service[gunicorn]/ensure: ensure changed 'stopped' to 'running'
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: New python executable in /opt/edx/bin/python
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Installing distribute.............................................................................................................................................................................................done.
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Installing pip...............done.
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Running virtualenv with interpreter /usr/bin//python
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Cannot fetch index base URL http://pypi.python.org/simple/
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Could not find any downloads that satisfy the requirement distribute in /opt/edx/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: No distributions at all found for distribute in /opt/edx/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg
/Stage[main]/Edx::Python/Python::Virtualenv[/opt/edx]/Exec[python_virtualenv_/opt/edx]/returns: Storing complete log in /root/.pip/pip.log
Error: mkdir -p /opt/edx && export http_proxy=false && virtualenv -p which python /opt/edx && /opt/edx/bin/pip install --upgrade distribute pip returned 1 instead of one of [0]

@apenney
Copy link
Copy Markdown
Contributor Author

apenney commented Oct 18, 2012

I accidently pushed a second commit into this - it uses $requirements.sha1 instead of requirements.sha so that multiple python::requirements can be used. Let me know if you need me to back this out and make it a separate pull.

stankevich added a commit that referenced this pull request Nov 2, 2012
Fixed no HTTP proxy case.
Added app_interface.
@stankevich stankevich merged commit 91b595d into voxpupuli:master Nov 2, 2012
sorreltree added a commit to sorreltree/puppet-python that referenced this pull request Jul 21, 2015
stankevich added a commit that referenced this pull request Sep 1, 2015
Fixed no HTTP proxy case.
Added app_interface.
shivapoudel pushed a commit that referenced this pull request Sep 1, 2015
siebrand pushed a commit to siebrand/puppet-python that referenced this pull request Oct 12, 2021
Add unit test for verifying requirements installation to declared venv
siebrand pushed a commit to siebrand/puppet-python that referenced this pull request Feb 22, 2022
Add unit test for verifying requirements installation to declared venv
siebrand pushed a commit to siebrand/puppet-python that referenced this pull request Sep 13, 2022
Add unit test for verifying requirements installation to declared venv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants