You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
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.
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'
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 islib/poise_python/python_providers/system.rb
, and I changed the "amazon" line to readyamazon: {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'
The text was updated successfully, but these errors were encountered: