Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

The CI fails when pip builds lxml from source on Python 3.14 (no prebuilt wheels available yet) due to missing system libraries.

Changes

  • Add workflow step to install libxml2-dev and libxslt1-dev before pip install in .github/workflows/build-website-reusable.yml
- name: Install system dependencies for lxml
  run: |
    sudo apt-get update
    sudo apt-get install -y libxml2-dev libxslt1-dev

This ensures lxml can build from source when wheels aren't available for newer Python versions.

Original prompt

This section details on the original issue you should resolve

<issue_title>CI: pip install fails building lxml on Python 3.14 — missing libxml2/libxslt dev packages</issue_title>
<issue_description>Failing job: https://github.com/OWASP/mas-website/actions/runs/19177110806/job/54824627154

Summary

The GitHub Actions job fails during pip install when building lxml. The installer errors with:
"Error: Please make sure the libxml2 and libxslt development packages are installed."

Relevant workflow file

.github/workflows/monitor-repos-and-deploy.yml at ref 2080af4
https://github.com/OWASP/mas-website/blob/2080af424b3d996ac79add169bc3a537cf59f884/.github/workflows/monitor-repos-and-deploy.yml

Log excerpt

Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
Error: Please make sure the libxml2 and libxslt development packages are installed.
[...]
A new release of pip is available: 25.2 -> 25.3

Cause

The runner is missing system development headers/libraries required to compile lxml from source (libxml2-dev and libxslt1-dev). On newer Python versions (3.14) prebuilt lxml wheels may not be available on PyPI yet, so pip falls back to building from source.

</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix CI pip install error for lxml on Python 3.14 Install libxml2/libxslt dev packages to fix lxml build on Python 3.14 Nov 7, 2025
Copilot AI requested a review from cpholguera November 7, 2025 18:41
@cpholguera cpholguera marked this pull request as ready for review November 7, 2025 18:51
@cpholguera cpholguera merged commit 7a72aa7 into main Nov 7, 2025
1 check passed
@cpholguera cpholguera deleted the copilot/fix-pip-install-lxml-error branch November 7, 2025 18:51
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.

CI: pip install fails building lxml on Python 3.14 — missing libxml2/libxslt dev packages

2 participants