Cannot import on M1 chip with rosetta x86 emulation
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=
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_
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)
This is a duplicate of https:/ /bugs.launchpad .net/lxml/ +bug/2059910
I didn't see the other issue before I posted this.