Mar 24, 2015. The yum_package resource fails with "ImportError: No Module named yum"

Sean Horn -

Today, Amazon updated their Amazon linux AMI to "Amazon Linux 2015.03"
This caused to have all sorts of problems when trying to resolve packages for use by the yum_package resource due to an upgrade of the python interpreter to version 2.7

You can find a workaround for the issue here

Chef is tracking the issue here

The gist of the issue is that python was upgraded on the new AMI to version 2.7, but only works with 2.6. It fails with a message like  "ImportError: No Module named yum"

Have more questions? Submit a request


Powered by Zendesk