Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📌 Pin lxml to not use binary wheels #2247

Merged
merged 1 commit into from
Oct 31, 2022
Merged

Conversation

sergei-maertens
Copy link
Member

This is in preparation to upgrading python3-saml and then lxml to their latest versions.

lxml breaks on some edge cases becaues it was statically built against a different libxml2 than other xml-based tooling using at runtime ( because that's dynamically linked), causing some tree lookups to fail.

This is in preparation to upgrading python3-saml and then lxml to their
latest versions.

lxml breaks on some edge cases becaues it was statically built against
a different libxml2 than *other* xml-based tooling using at runtime (
because that's dynamically linked), causing some tree lookups to fail.

* python3-saml issue: SAML-Toolkits/python3-saml#292
* upstream bug: https://bugs.launchpad.net/lxml/+bug/1960668
@sergei-maertens sergei-maertens merged commit 2f2857d into master Oct 31, 2022
@sergei-maertens sergei-maertens deleted the feature/upgrade-lxml branch October 31, 2022 07:44
nkukard added a commit to nkukard/PowerDNS-Admin that referenced this pull request Mar 14, 2023
… built against old libxml2

This fixes PowerDNS-Admin#1442 and closes PowerDNS-Admin#1433.

The issue with python3-saml not working is because the binary lxml wheel is built against a different version of libxml2.

``--no-binary lxml`` can be used to fix this and python3-saml will work.

for references check these:
- SAML-Toolkits/python3-saml#292
- https://bugs.launchpad.net/lxml/+bug/1960668
- open-formulieren/open-forms#2247
nkukard added a commit to nkukard/PowerDNS-Admin that referenced this pull request Mar 14, 2023
… built against old libxml2

This fixes PowerDNS-Admin#1442 and closes PowerDNS-Admin#1433.

The issue with python3-saml not working is because the binary lxml wheel is built against a different version of libxml2.

``--no-binary lxml`` can be used to fix this and python3-saml will work.

for references check these:
- SAML-Toolkits/python3-saml#292
- https://bugs.launchpad.net/lxml/+bug/1960668
- open-formulieren/open-forms#2247

```
Tested on:
 - ubuntu:23.04 - WORKING
 - ubuntu:22.10 - WORKING
 - ubuntu:22.04 - WORKING
 - ubuntu:20.04 - WORKING
 - ubuntu:18.04 - NOT WORKING - pip usage error with -r requirements.txt
 - debian:10    - WORKING
 - debian:11    - WORKING
 - alpine:edge  - WORKING
 - alpine:3.17  - WORKING
 - alpine:3.16  - WORKING
 - alpine:3.15  - WORKING
 - alpine:3.14  - WORKING
 - rockylinux:9 - WORKING
 - rockylinux:8 - NOT WORKING - pip usage error with -r requirements.txt
 - almalinux:9  - WORKING
 - almalinux:8  - NOT WORKING - pip usage error with -r requirements.txt
 - fedora:36    - WORKING
 - fedora:37    - WORKING
 - fedora:38    - WORKING
 - fedora:39    - WORKING
```
nkukard added a commit to nkukard/PowerDNS-Admin that referenced this pull request Mar 14, 2023
Fixes Python 3.11 incompatibility using ancient lxml binary PyPI built against old libxml2.

This fixes PowerDNS-Admin#1442 and closes PowerDNS-Admin#1433.

The issue with python3-saml not working is because the binary lxml wheel is built against a different version of libxml2.

``--no-binary lxml`` can be used to fix this and python3-saml will work.

for references check these:
- SAML-Toolkits/python3-saml#292
- https://bugs.launchpad.net/lxml/+bug/1960668
- open-formulieren/open-forms#2247

```
Tested on:
 - ubuntu:23.04 - WORKING
 - ubuntu:22.10 - WORKING
 - ubuntu:22.04 - WORKING
 - ubuntu:20.04 - WORKING
 - ubuntu:18.04 - NOT WORKING - pip usage error with -r requirements.txt
 - debian:10    - WORKING
 - debian:11    - WORKING
 - alpine:edge  - WORKING
 - alpine:3.17  - WORKING
 - alpine:3.16  - WORKING
 - alpine:3.15  - WORKING
 - alpine:3.14  - WORKING
 - rockylinux:9 - WORKING
 - rockylinux:8 - NOT WORKING - pip usage error with -r requirements.txt
 - almalinux:9  - WORKING
 - almalinux:8  - NOT WORKING - pip usage error with -r requirements.txt
 - fedora:36    - WORKING
 - fedora:37    - WORKING
 - fedora:38    - WORKING
 - fedora:39    - WORKING
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants