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
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
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
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
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
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).
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).
I will fix it as part of rebase to python-ldap 2.4.17.
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
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
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).
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.
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.