Illegal instruction on etree import inside docker container

Bug #1652194 reported by Thomas Walton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
New
Undecided
Unassigned

Bug Description

I'm inside a docker container. Importing lxml 3.7.0 exits with "Illegal instruction". This is not the case on older lxml:

user@desktop:/d3/workspace$ docker run -it ubuntu:xenial
root@46b02a5fa372:/# apt-get update
[...]
root@46b02a5fa372:/# apt-get install python3-dev python3-pip
[...]
root@46b02a5fa372:/# pip3 install lxml
Collecting lxml
  Downloading lxml-3.7.0-cp35-cp35m-manylinux1_x86_64.whl (7.1MB)
    100% |################################| 7.1MB 131kB/s
Installing collected packages: lxml
Successfully installed lxml-3.7.0
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@46b02a5fa372:/# python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
Illegal instruction

Downgrading works fine:

root@46b02a5fa372:/# pip3 install lxml==3.6.4
Collecting lxml==3.6.4
  Downloading lxml-3.6.4-cp35-cp35m-manylinux1_x86_64.whl (4.2MB)
    100% |################################| 4.2MB 257kB/s
Installing collected packages: lxml
  Found existing installation: lxml 3.7.0
    Uninstalling lxml-3.7.0:
      Successfully uninstalled lxml-3.7.0
Successfully installed lxml-3.6.4
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@46b02a5fa372:/# python3.5
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
>>>

Revision history for this message
John L. Villalovos (happycamp) wrote :

This seems to be a duplicate of:
https://bugs.launchpad.net/lxml/+bug/1652191

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.