Installing via 'sudo yum install ansible' on REL 6.3 results in 'Requires: python-jinja2'

John Krewson wrote:

Greetings,

I have looked through this group and found some questions similar to mine,
but the posts I found were from some months ago and I can't quite tell if
there is a problem with a reference in the Epel ansible package or if I'm
performing a step incorrectly. If I need to ask the Epel maintainers
instead, please let me know.

On a REL 6.3 server, I have access to the Epel 6 list of packages. Epel 6
contains an 'ansible' package.

When attempting to install, I get the following:

Error: Package: ansible-0.8-1.el6.noarch (epel-rhel6-x86_64)
           Requires: python-jinja2

Epel 6 has python-jinja2-26, but the ansible package is referring to the
jinja2 package in Epel 5.

Has anyone run into this before? I've included some addition details of my
setup at the end of the message.

You have to enable the RHEL6 optional channel to get it. It's not in EPEL.

Daniel

It is in EPEL.

http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/python-jinja.html

It looks like the "-26" version is just a noarch package pointing to the other.

Michael DeHaan wrote:

Ha, ok, so they completely renamed things or I've just been using pip.

This is totally fixable through a conditional in the specfile.

Cobbler does some of this and we can port it.

https://github.com/cobbler/cobbler/blob/master/cobbler.spec

The question is, how was it *already* working in EPEL6 and not failing
or was this a recent rename in EPEL (and if so, not cool, EPEL?)

Adding Tim on CC in case he knows.

Ok, so it sounds like python-jinja2 does NOT need to be in there for
CentOS EPEL because it's already in CentOS CentOS, so this is just
what Daniel said about enabling the other RHEL repo.

Computers are hard! :slight_smile:

I will check that out. I thought it was a missed inclusion. Thanks!