Bug 995545 - python-ldap needs python-pyasn1-modules
Summary: python-ldap needs python-pyasn1-modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ldap
Version: 19
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Petr Spacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-09 16:54 UTC by Jens Kuehnel
Modified: 2014-10-10 16:12 UTC (History)
4 users (show)

Fixed In Version: python-ldap-2.4.17-1.fc20
Clone Of:
Environment:
Last Closed: 2014-10-08 19:14:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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