Bug 1456673
Summary: | python3-pyldap contains python3 incompatible code | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Standa Laznicka <slaznick> |
Component: | python-pyldap | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | mhroncok, pviktori, python-sig, rkuska |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-pyldap-2.4.35.1-2.fc27 python-pyldap-2.4.35.1-2.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-09 19:16:37 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
Standa Laznicka
2017-05-30 07:10:23 UTC
Once the above is worked around, there is yet another python3 incompatibility: File "/usr/lib64/python3.5/site-packages/ldap/schema/subentry.py", line 480, in urlfetch ldif_parser = ldif.LDIFRecordList(ldif_file,max_entries=1) File "/usr/lib64/python3.5/site-packages/ldif.py", line 535, in __init__ LDIFParser.__init__(self,input_file,ignored_attr_types,max_entries,process_url_schemes) File "/usr/lib64/python3.5/site-packages/ldif.py", line 294, in __init__ self._line = self._readline() File "/usr/lib64/python3.5/site-packages/ldif.py", line 307, in _readline if s[-2:]=='\r\n': BytesWarning: Comparison between bytes and string which is fixed upstream in https://github.com/pyldap/pyldap/commit/39a31ba755ff91c2f0ffa8ced713da32f6ed4cf1 which is further fixed in https://github.com/pyldap/pyldap/commit/1b4da37305dc29a60bacb11e317bcd004400cd78 for non-standard situations. A F26 scratch build with the latest release: https://koji.fedoraproject.org/koji/taskinfo?taskID=19780394 Let me know if that fixes it. Also, if you wish to backport the fixes to F25, please do. Miro, Thank you. In the meantime, I made an own copr build for Fedora 25/26, too (I believe we're using the same sources), and found one more bytes-unicode comparison which was not yet fixed upstream and is also contained in your package. Please, see https://github.com/pyldap/pyldap/pull/96/files, it's an easy one-liner. Nonetheless, I could probably live with your build should we not decide to go with the ^-- PR. Let's wait a bit for the response for the above PR. With your patch https://koji.fedoraproject.org/koji/taskinfo?taskID=19780641 Let me know and if it works for you, I'll build it in rawhide and F26. It does work, thanks for the brief action. python-pyldap-2.4.35.1-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-beaa317f1d python-pyldap-2.4.35.1-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-beaa317f1d python-pyldap-2.4.35.1-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. |