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

241 views
Skip to first unread message

Shili Yang

unread,
Mar 7, 2016, 8:56:49 AM3/7/16
to Ansible Project
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#

2. 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/
Download error on 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/
Download error on 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


Johannes Kastl

unread,
Mar 7, 2016, 4:00:54 PM3/7/16
to ansible...@googlegroups.com
Am 07.03.16 schrieb Shili Yang:
> 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

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

signature.asc

Shili Yang

unread,
Mar 7, 2016, 5:30:33 PM3/7/16
to Ansible Project


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
Reply all
Reply to author
Forward
0 new messages