Skip to content
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

Not possible to install latest version of Python #240

Closed
joshuaspence opened this issue Sep 9, 2015 · 1 comment
Closed

Not possible to install latest version of Python #240

joshuaspence opened this issue Sep 9, 2015 · 1 comment

Comments

@joshuaspence
Copy link
Contributor

I want to be able to use the default provider (i.e. not provider => 'pip) and still install the latest version of python, python-virtualenv and python-pip. It seems that at the moment it is hardcoded to ensure => 'present'.

@joshuaspence
Copy link
Contributor Author

An additional observation I had was that it doesn't seem like installing Python 2.7 via pip works anyway. With the following puppet code:

class { 'python':
  provider => 'pip',
}

I get the following error:

err: /Stage[main]/Python::Install/Package[python==system]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/local/bin/pip install -q --upgrade python==system' returned 1: /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement python==system (from versions: )
No matching distribution found for python==system
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
 at /etc/puppet/ext_modules/python/manifests/install.pp:57

Setting version => '2.7.10' and I get a different issue:

err: /Stage[main]/Python::Install/Package[python==2.7.10]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/local/bin/pip install -q --upgrade python==2.7.10' returned 1: /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Could not find a version that satisfies the requirement python==2.7.10 (from versions: )
No matching distribution found for python==2.7.10
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
 at /etc/puppet/ext_modules/python/manifests/install.pp:57

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

No branches or pull requests

1 participant