# installation failure on rhel 7.1:  failed dependency: python-jinja2

**URL:** <https://forum.ansible.com/t/installation-failure-on-rhel-7-1-failed-dependency-python-jinja2/20787>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [March 7, 2016, 2:24am UTC](https://forum.ansible.com/t/installation-failure-on-rhel-7-1-failed-dependency-python-jinja2/20787 "2016-03-07T02:24:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shili\_Yang](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Shili\_Yang](https://forum.ansible.com/u/Shili_Yang)\
**Post date:** [March 7, 2016, 2:24am UTC](https://forum.ansible.com/t/installation-failure-on-rhel-7-1-failed-dependency-python-jinja2/20787/1 "2016-03-07T02:24:32Z")

</div>

Hi,

I am trying to install Ansible on a RHEL 7.1 VM, and hitting the (last) outstanding dependency:

-bash-4.2# rpm -Uvh ./rpm-build/ansible-\*.noarch.rpm  
error: Failed dependencies:  
python-jinja2 is needed by ansible-2.0.0.2-0.git201601142217.7de237c.stable2001.el7.noarch

I’ve tried different ways to get jinja2:

1. via the tarball, which succeeded, but it doesn’t seem to get recognized by Ansible:

Installed /usr/lib/python2.7/site-packages/Jinja2-2.8.1\_dev-py2.7.egg  
Processing dependencies for Jinja2==2.8.1-dev  
Searching for MarkupSafe==0.23  
Best match: MarkupSafe 0.23  
Processing MarkupSafe-0.23-py2.7-linux-x86\_64.egg  
MarkupSafe 0.23 is already the active version in easy-install.pth

Using /usr/lib64/python2.7/site-packages/MarkupSafe-0.23-py2.7-linux-x86\_64.egg  
Finished processing dependencies for Jinja2==2.8.1-dev  
-bash-4.2#

1. via easy\_install, but seems to hit a SSL bug due to proxy server

/root/jinja/jinja2  
-bash-4.2# easy\_install python-jinja2  
Searching for python-jinja2  
Reading [https://pypi.python.org/simple/python-jinja2/](https://pypi.python.org/simple/python-jinja2/)  
Download error on [https://pypi.python.org/simple/python-jinja2/:](https://pypi.python.org/simple/python-jinja2/:) [Errno 1] \_ssl.c:504: error:140770FC:SSL routines:SSL23\_GET\_SERVER\_HELLO:unknown protocol – Some packages may not be found!  
Couldn’t find index page for ‘python-jinja2’ (maybe misspelled?)  
Scanning index of all packages (this may take a while)  
Reading [https://pypi.python.org/simple/](https://pypi.python.org/simple/)  
Download error on [https://pypi.python.org/simple/:](https://pypi.python.org/simple/:) [Errno 1] \_ssl.c:504: error:140770FC:SSL routines:SSL23\_GET\_SERVER\_HELLO:unknown protocol – Some packages may not be found!  
No local packages or download links found for python-jinja2  
error: Could not find suitable distribution for Requirement.parse(‘python-jinja2’)

How can I proceed? Thanks a lot!

Shili

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [March 7, 2016, 9:00pm UTC](https://forum.ansible.com/t/installation-failure-on-rhel-7-1-failed-dependency-python-jinja2/20787/2 "2016-03-07T21:00:41Z")

</div>

Is this not available from EPEL? Install the package epel-release and  
then try again.

Or mayb just try installing the local rpm with yum, to get all  
dependecies resolved.

Johannes

---

<div class="post-metadata">

**Author:** ![Shili\_Yang](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Shili\_Yang](https://forum.ansible.com/u/Shili_Yang)\
**Post date:** [March 7, 2016, 10:30pm UTC](https://forum.ansible.com/t/installation-failure-on-rhel-7-1-failed-dependency-python-jinja2/20787/3 "2016-03-07T22:30:32Z")

</div>

Thanks very much for looking into this and your suggestion, Johannes.

I’ve tried the following, but it didn’t help:

-bash-4.2# yum install epel-release  
Loaded plugins: rhnplugin  
This system is receiving updates from RHN Classic or Red Hat Satellite.  
localrepo | 2.9 kB 00:00:00  
rhel-x86\_64-server-7 | 1.5 kB 00:00:00  
rhn-tools-rhel-x86\_64-server-7 | 1.3 kB 00:00:00  
**Package epel-release-7-5.noarch already installed and latest version**  
Nothing to do  
-bash-4.2#

I read somewhere that the package has been moved from epel to ‘optional’ repository, but I don’t have any optional repository from my Satellite Server, or I just didn’t set it up properly?

Where can I get a RPM for to install locally?

Thanks!

Shili
