lxml wheel for pypy on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Is there a wheel of lxml for pypy?
I tried the normal install (pypy -m pip install) and installed the dependencies libxml2, libxslt, iconv, zlib. The installation worked (after numerous tries), but the resulting software is crashing with a Protection Violation in msvcr110.dll:free pretty soon.
NB: We are not using lxml directly, but through SOPA library (zeep).
The same code works on cpython or pypy on Mac
Code:
from zeep import Client
c=Client(""https:/
c=Client(""https:/
NB: The first call to client works, the segment creates the protection violation (beeing called from lxml.etree)
lxml: 3.6.1
zeep: 0.13
defusedxml=0.4.1
Cython: 0.24.1
requests: 2.1.0
pypy2: 5.3.1 (32 bit)
OS: Windows 10 Pro - 64 bit
iconv: 1.9.2
libxml2: 2.7.8
libxslt: 1.1.26
zlib: 1.2.5
Python : (major=2, minor=7, micro=10, releaselevel=
lxml.etree : (3, 6, 1, 0)
libxml used : (2, 7, 8)
libxml compiled : (2, 7, 8)
libxslt used : (1, 1, 26)
libxslt compiled : (1, 1, 26)
Regarding the wheels: it's unlikely that someone will make those available, but I'd never say never.
Regarding the crash, your whole setup seems rather brittle: MS-Windows + PyPy + emulated C-API + lxml + extremely old versions of libxml2/libxslt + mix of 32/64 bit architectures. I'm not surprised that you run into crashes. I don't know how well supported PyPy is on Windows, but I know that the latest major changes in their C-API emulation are still rather new, so there are definitely bugs. And the old library versions are also not very reassuring.
You can at least get newer (unofficial) library versions from the URL referenced below, but I don't know if they work with the PyPy version that you are using: /github. com/lxml/ lxml/blob/ master/ buildlibxml. py#L42
https:/