lxml fails to install on pypy3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| lxml |
Low
|
scoder |
Bug Description
Hi, we have tried to support PyPy 3 for our python CI builds today, but it fails to install only on PyPy 3. I have tried restarting the build but to no avail. Here's the full log:
Using worker: worker-
Build system information
Build language: python
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https:/
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
LLVM version
clang version 3.4 (tags/RELEASE_
Target: x86_64-
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb94767
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-
$ git clone --depth=50 --branch=master git://github.
Cloning into 'libextract/
remote: Counting objects: 345, done.
remote: Compressing objects: 100% (236/236), done.
remote: Total 345 (delta 199), reused 250 (delta 106), pack-reused 0
Receiving objects: 100% (345/345), 148.54 KiB | 0 bytes/s, done.
Resolving deltas: 100% (199/199), done.
Checking connectivity... done.
$ cd libextract/
$ git checkout -qf 5d4c332676ec064
This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See http://
$ source ~/virtualenv/
$ python --version
Python 3.2.5 (b2091e973da6, Oct 19 2014, 18:29:55)
[PyPy 2.4.0 with GCC 4.6.3]
$ pip --version
pip 6.0.7 from /home/travis/
$ pip install .
You are using pip version 6.0.7, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Processing /home/travis/
Collecting chardet>=2.3.0 (from libextract==0.0.0)
Downloading chardet-
100% |######
Collecting lxml>=3.4.2 (from libextract==0.0.0)
Downloading lxml-3.4.2.tar.gz (3.5MB)
100% |######
Building lxml version 3.4.2.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/
/opt/
warnings.
Installing collected packages: libextract, lxml, chardet
Running setup.py install for libextract
Running setup.py install for lxml
Building lxml version 3.4.2.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/
building 'lxml.etree' extension
cc -O2 -fPIC -Wimplicit -I/usr/
cc -shared build/temp.
building 'lxml.objectify' extension
cc -O2 -fPIC -Wimplicit -I/usr/
src/
src/
src/
src/
/opt/
warnings.
error: command 'cc' failed with exit status 1
Complete output from command /home/travis/
Building lxml version 3.4.2.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/
running install
running build
running build_py
creating build
creating build/lib.
creating build/lib.
copying src/lxml/builder.py -> build/lib.
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/sax.py -> build/lib.
copying src/lxml/
copying src/lxml/
copying src/lxml/
creating build/lib.
copying src/lxml/
creating build/lib.
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
creating build/lib.
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
creating build/lib.
creating build/lib.
copying src/lxml/
creating build/lib.
copying src/lxml/
copying src/lxml/
creating build/lib.
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
copying src/lxml/
running build_ext
building 'lxml.etree' extension
creating build/temp.
creating build/temp.
creating build/temp.
cc -O2 -fPIC -Wimplicit -I/usr/
cc -shared build/temp.
building 'lxml.objectify' extension
cc -O2 -fPIC -Wimplicit -I/usr/
src/
src/
src/
src/
/opt/
warnings.
error: command 'cc' failed with exit status 1
---
Command "/home/
The command "pip install ." failed and exited with 1 during .
Your build has been stopped.
scoder (scoder) wrote : | #1 |
Changed in lxml: | |
assignee: | nobody → scoder (scoder) |
importance: | Undecided → Low |
milestone: | none → 3.5 |
status: | New → Confirmed |
scoder (scoder) wrote : | #2 |
Still, note that PyPy, and especially PyPy3, is rather buggy and incomplete when it comes to running native extensions, so it may or may not work for you.
Noted. Any reason why PyPy is buggy when running native extensions?
On Fri, Apr 10, 2015 at 9:07 PM, scoder <email address hidden> wrote:
> Still, note that PyPy, and especially PyPy3, is rather buggy and
> incomplete when it comes to running native extensions, so it may or may
> not work for you.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> lxml fails to install on pypy3
>
> Status in lxml - the Python XML toolkit:
> Confirmed
>
> Bug description:
> Hi, we have tried to support PyPy 3 for our python CI builds today,
> but it fails to install only on PyPy 3. I have tried restarting the
> build but to no avail. Here's the full log:
>
> Using worker: worker-
> linux-6
>
> Build system information
> Build language: python
> Build image provisioning date and time
> Thu Feb 5 15:09:33 UTC 2015
> Operating System Details
> Distributor ID: Ubuntu
> Description: Ubuntu 12.04.5 LTS
> Release: 12.04
> Codename: precise
> Linux Version
> 3.13.0-29-generic
> Cookbooks Version
> a68419e https:/
> GCC version
> gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is
> NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> LLVM version
> clang version 3.4 (tags/RELEASE_
> Target: x86_64-
> Thread model: posix
> Pre-installed Ruby versions
> ruby-1.9.3-p551
> Pre-installed Node.js versions
> v0.10.36
> Pre-installed Go versions
> 1.4.1
> Redis version
> redis-server 2.8.19
> riak version
> 2.0.2
> MongoDB version
> MongoDB 2.4.12
> CouchDB version
> couchdb 1.6.1
> Neo4j version
> 1.9.4
> RabbitMQ Version
> 3.4.3
> ElasticSearch version
> 1.4.0
> Installed Sphinx versions
> 2.0.10
> 2.1.9
> 2.2.6
> Default Sphinx version
> 2.2.6
> Installed Firefox version
> firefox 31.0esr
> PhantomJS version
> 1.9.8
> ant -version
> Apache Ant(TM) version 1.8.2 compiled on December 3 2011
> mvn -version
> Apache Maven 3.2.5 (12a6b3acb94767
> 2014-12-
> Maven home: /usr/local/maven
> Java version: 1.7.0_76, vendor: Oracle Corporation
> Java home: /usr/lib/
> Default locale: en_US, platform encoding: ANSI_X3.4-1968
> OS name: "linux", version: "3.13.0-
> "unix"
>
> $ git clone --depth=50 --branch=master git://
> github.
> Cloning into 'libextract/
> remote: Counting objects: 345, done.
> remote: Compressing objects: 100% (236/236), done.
> remote: Total 345 (delta 199), reused 250 (delta 106), pack-reused 0
> Receiving objects: 100% (345/345), 148.54 KiB | 0 bytes/s, done.
> Resolving deltas: 100% (199/199), done.
> Checking connectivity... done.
> $ cd libextract/
scoder (scoder) wrote : | #4 |
This is the wrong place to ask for a reason. It's just buggy. Some things
don't work as expected, some don't work at all. Sometimes, working around
these bugs is easy, sometimes it's not easy and sometimes it's impossible.
Some bugs get fixed, others don't.
PyPy3 is particularly buggy as it is a fork of the PyPy2 implementation and
not everything has been converted and adapted for Python 3 semantics yet.
Other things have been wrongly adapted or got broken along the way. Work in
progress, I guess.
scoder (scoder) wrote : | #5 |
Marking as "won't fix" because it's up to PyPy to come up with a working pypy3 release.
Changed in lxml: | |
milestone: | 3.5 → none |
status: | Confirmed → Won't Fix |
Yes, these are known issues. They'll hopefully be fixed with the next release.