Cannot import on M1 chip with rosetta x86 emulation

Bug #2059969 reported by Daniel Garcia Briseno
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
New
Undecided
Unassigned

Bug Description

I traced down an "Illegal Instruction" exception to importing lxml.etree version 5.2.0.
The exception occurs on a Mac M1 laptop while running a linux/x86_64 alpine docker container.

To reproduce:
1. docker run --platform=linux/x86_64 --rm -it alpine /bin/sh

In the alpine container
```
apk add py3-pip
python -m venv venv
source venv/bin/activate
pip install lxml==5.2.0
python -c "import lxml.etree"
```

This was not an issue with version 5.1.1.

Version info:
Python : sys.version_info(major=3, minor=11, micro=8, releaselevel='final', serial=0)
lxml.etree : (5, 1, 1, 0)
libxml used : (2, 12, 6)
libxml compiled : (2, 12, 6)
libxslt used : (1, 1, 39)
libxslt compiled : (1, 1, 39)

Revision history for this message
Daniel Garcia Briseno (dgarciabriseno) wrote :
Revision history for this message
Daniel Garcia Briseno (dgarciabriseno) wrote :

This is a duplicate of https://bugs.launchpad.net/lxml/+bug/2059910

I didn't see the other issue before I posted this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.