Skip to content

Python 3.14: pipx failed to build lxml #2266

@ocervell

Description

@ocervell

Cannot install the latest version on Python 3.14, I'm getting:

⚡ pipx install maigret==0.5.0 --force
creating virtual environment...
installing maigret from spec 'maigret==0.5.0'...
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2026-01-13_10.59.17_pip_errors.log
pip failed to build package:
    lxml
Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    src/lxml/etree.c:28111:49: error: passing argument 1 of ‘__pyx_f_4lxml_5etree__fixThreadDictPtr’ from incompatible pointer type [-Wincompatible-pointer-types]
    error: command '/usr/sbin/gcc' failed with exit code 1
    error: failed-wheel-build-for-install

Cloning the repo and running pipx install . inside works:

git clone https://github.com/soxoj/maigret
cd maigret
pipx install .
  installed package maigret 0.5.0, installed using Python 3.14.2
  These apps are now globally available
    - maigret
    - update_sitesmd
done! ✨ 🌟 ✨

Not sure what's going on ...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions