Bug 1305144 - ipa-python does not require its dependencies
Summary: ipa-python does not require its dependencies
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-05 19:56 UTC by Scott Poore
Modified: 2016-11-04 05:51 UTC (History)
3 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2016-11-04 05:51:03 UTC


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2404 normal SHIPPED_LIVE ipa bug fix and enhancement update 2016-11-03 13:56:18 UTC

Description Scott Poore 2016-02-05 19:56:16 UTC
Description of problem:

It appears that ipa-python is missing some dependencies when installed by default.  From my test, I had to install the following additional rpms by hand:

python-krbV
python-dns
python-ldap

Version-Release number of selected component (if applicable):
ipa-python-4.2.0-15.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.  yum -y install ipa-python
2.  python -c "from ipapython import ipautil"


Actual results:

Fails to import until I install missing RPMs manually.


Expected results:

I would have thought that ipa-python would have required those rpms so they were installed as dependencies.

Additional info:



[root@vm3 ~]# python -c "from ipapython import ipautil"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 37, in <module>
    import krbV
ImportError: No module named krbV

[root@vm3 ~]# yum -y install python-krbV
...

[root@vm3 ~]# python -c "from ipapython import ipautil"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 40, in <module>
    from dns import resolver, rdatatype
ImportError: No module named dns

[root@vm3 ~]# yum -y install python-dns
...

[root@vm3 ~]# python -c "from ipapython import ipautil"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 46, in <module>
    from ipapython import config
  File "/usr/lib/python2.7/site-packages/ipapython/config.py", line 25, in <module>
    from ipapython.dn import DN
  File "/usr/lib/python2.7/site-packages/ipapython/dn.py", line 421, in <module>
    from ldap.dn import str2dn, dn2str
ImportError: No module named ldap.dn

[root@vm3 ~]# yum -y install python-ldap
...

[root@vm3 ~]# python -c "from ipapython import ipautil"
[root@vm3 ~]#

Comment 2 Petr Vobornik 2016-02-16 16:07:51 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5680

Comment 3 Petr Vobornik 2016-03-24 19:40:23 UTC
fixed upstream

master:
    d6f03da7535565daa936b79c445b835410333974 spec: Add missing dependencies to python*-ipalib package 

ipa-4-3:
    34ce42cc97fc7014a34179159e5a17690e4cdb34 spec: Add missing dependencies to python*-ipalib package

Comment 4 Mike McCune 2016-03-28 22:43:24 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune@redhat.com with any questions

Comment 6 Scott Poore 2016-06-22 22:04:21 UTC
Verified.

Version ::

ipa-python-compat-4.4.0-0.el7.1.alpha1

Results ::

[root@auto-hv-01-guest10 ~]# yum -y install ipa-python
...
Installed:
  ipa-python-compat.noarch 0:4.4.0-0.el7.1.alpha1                              

Dependency Installed:
  python-dns.noarch 0:1.12.0-2.20150617git465785f.el7                          
  python-ldap.x86_64 0:2.4.15-2.el7                                            
  python2-ipalib.noarch 0:4.4.0-0.el7.1.alpha1                                 

Complete!
[root@auto-hv-01-guest10 ~]# python -c "from ipapython import ipautil"
[root@auto-hv-01-guest10 ~]#

Comment 8 errata-xmlrpc 2016-11-04 05:51:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2404.html


Note You need to log in before you can comment on or make changes to this bug.