lxml with python-3.12.0a5

Robin Becker robin at reportlab.com
Thu Feb 23 08:03:26 EST 2023


I'm trying to test python-3.12.0a5 and need to install lxml.

My wheel build for lxml fails with errors like this


src/lxml/etree.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
src/lxml/etree.c:270404:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
270404 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
        |                                             ^~

I'm using archlinux which has gcc 12.2.1. I tested and lxml will build with 3.11.2.

I imagine this is part of ongoing changes to the python core, but perhaps there's some simple workaround.

Anyone know how to get around this problem. I did try rebuilding the cpython stuff using make, but that also failed.

--
Robin Becker


More information about the Python-list mailing list