Bug 995545

Summary: python-ldap needs python-pyasn1-modules
Product: [Fedora] Fedora Reporter: Jens Kuehnel <bugzilla-redhat>
Component: python-ldapAssignee: Petr Spacek <pspacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: lnie, mkosek, pspacek, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-ldap-2.4.17-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-08 19:14:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Kuehnel 2013-08-09 16:54:53 UTC
Description of problem:
python-ldap needs python-pyasn1-modules

Version-Release number of selected component (if applicable):
python-ldap-2.4.6-4.fc19.x86_64

How reproducible:
100%

Steps to Reproduce:
1.yum install python-ldap
2. start python
3. type in: import ldap.controls.ppolicy

Actual results:
$ python
Python 2.7.5 (default, Jul  8 2013, 09:48:59) 
[GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldap.controls.ppolicy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/ldap/controls/ppolicy.py", line 20, in <module>
    from pyasn1.type import tag,namedtype,namedval,univ,constraint
ImportError: No module named pyasn1.type
>>> 


Expected results:
$python
Python 2.7.5 (default, Jul  8 2013, 09:48:59) 
[GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ldap.controls.ppolicy
>>> 


Additional info:
add python-pyasn1-modules.noarch to required to fix problem.
Work around: yum install python-pyasn1-modules.noarch

Comment 1 Fedora Update System 2014-09-25 09:05:56 UTC
python-ldap-2.4.16-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-ldap-2.4.16-1.fc21

Comment 2 Fedora Update System 2014-09-25 10:12:41 UTC
python-ldap-2.4.16-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-ldap-2.4.16-1.fc20

Comment 3 lnie 2014-09-26 04:29:42 UTC
Tested with python-ldap-2.4.16-1.fc20,the dependency for python-pyasn1 is added,
but I still got traceback:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/ldap/controls/ppolicy.py", line 22, in <module>
    from pyasn1_modules.rfc2251 import LDAPDN
ImportError: No module named pyasn1_modules.rfc2251

Comment 4 Martin Kosek 2014-09-26 08:46:57 UTC
It looks like the Requires should be on the modules subpackage instead:

# rpm -ql python-pyasn1-modules | grep rfc2251
/usr/lib/python2.7/site-packages/pyasn1_modules/rfc2251.py
/usr/lib/python2.7/site-packages/pyasn1_modules/rfc2251.pyc
/usr/lib/python2.7/site-packages/pyasn1_modules/rfc2251.pyo

Comment 5 Fedora Update System 2014-09-26 09:03:19 UTC
Package python-ldap-2.4.16-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-ldap-2.4.16-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11530/python-ldap-2.4.16-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-09-27 09:50:01 UTC
Package python-ldap-2.4.16-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-ldap-2.4.16-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11611/python-ldap-2.4.16-1.fc21
then log in and leave karma (feedback).

Comment 7 Petr Spacek 2014-09-29 14:40:55 UTC
I will fix it as part of rebase to python-ldap 2.4.17.

Comment 8 Fedora Update System 2014-09-29 15:01:37 UTC
python-ldap-2.4.17-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-ldap-2.4.17-1.fc21

Comment 9 Fedora Update System 2014-09-29 15:11:58 UTC
python-ldap-2.4.17-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-ldap-2.4.17-1.fc20

Comment 10 Fedora Update System 2014-10-01 04:18:29 UTC
Package python-ldap-2.4.17-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-ldap-2.4.17-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11885/python-ldap-2.4.17-1.fc21
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2014-10-08 19:14:05 UTC
python-ldap-2.4.17-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2014-10-10 16:12:03 UTC
python-ldap-2.4.17-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.