Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Amazon Linux 2 Doesn't Seem Supported (can't find "python27" package) #130

Open
glajchs opened this issue Aug 23, 2018 · 0 comments
Open

Comments

@glajchs
Copy link

glajchs commented Aug 23, 2018

When trying to use our existing cookbooks to do a chef install of an Amazon Linux 2 machine (https://aws.amazon.com/amazon-linux-2/release-notes/) using AMI (ami-b70554c8), we hit an issue where the poise-python package was trying to install an RPM with the name "python27", when there is no RPM with that name in the repo. For this version of the OS, the "python" package is already version 2.7. I was able to eventually get my install past this error by modifying the chef file locally and re-running with sudo chef-client --skip-cookbook-sync. In source, the file I modified is lib/poise_python/python_providers/system.rb, and I changed the "amazon" line to ready amazon: {default: %w{python}},.

I'm not sure, but I think maybe there needs to be detection support for amazon linux 2, and change the package names.

The error I got while installing is pasted here.
poise-python-beaver-install-issue.txt

As you can see, it's actually the "beaver" package that's trying to install python here, but all the beaver package does is run python_runtime 'beaver' using the following attributes: default['poise-python']['beaver']['provider'] = 'system' default['poise-python']['beaver']['version'] = '2'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant