[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    Re: [pypy-dev] Pypy3 lxml support - please help
From:       Armin Rigo <armin.rigo () gmail ! com>
Date:       2017-07-30 14:09:51
Message-ID: CAMSv6X0XRBrA-ZM0oPAmo67NcFSjo9dxC69ivco6qS=rH_fFGQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Michal,

On 30 July 2017 at 13:53, Michal Moiseev <michal.moiseev@firmitas.solutions=
>
wrote:

> I couldn't seem to fine a solution for the lxml package, the pypy
> implementation - lxml-cffi is only for python 2.x, and when installing
> lxml, it is also seems to work only for python 2.x, and the following err=
or
> is printed when trying to import:
>

This used to be a known problem with Cython:
https://github.com/cython/cython/pull/1631 .  It has been fixed in Cython
0.26.  The issue here is that lxml comes with pre-Cythonized files produced
by Cython 0.25.2.

Apart from waiting for the next release of lxml, you could manually install
lxml.  To do so, download the source, and run:

    pypy3 -m pip install cython
    pypy3 setup.py build --with-cython      # forced re-Cythonize
    pypy3 setup.py install


A bient=C3=B4t,

Armin.

[Attachment #5 (text/html)]

<div dir="ltr">Hi Michal,<br><div class="gmail_extra"><br><div class="gmail_quote">On \
30 July 2017 at 13:53, Michal Moiseev <span dir="ltr">&lt;<a \
href="mailto:michal.moiseev@firmitas.solutions" \
target="_blank">michal.moiseev@firmitas.solutions</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I \
couldn&#39;t seem to fine a solution for the lxml package, the pypy implementation - \
lxml-cffi is only for python 2.x, and when installing lxml, it is also seems to work \
only for python 2.x, and the following error is printed when trying to \
import:</div></blockquote><div><br></div><div>This used to be a known problem with \
Cython: <a href="https://github.com/cython/cython/pull/1631">https://github.com/cython/cython/pull/1631</a> \
.   It has been fixed in Cython 0.26.   The issue here is that lxml comes with \
pre-Cythonized files produced by Cython 0.25.2.<br></div><br></div>Apart from waiting \
for the next release of lxml, you could manually install lxml.   To do so, download \
the source, and run:<br><br>      pypy3 -m pip install cython<br>       pypy3 \
setup.py build --with-cython           # forced re-Cythonize<br></div><div \
class="gmail_extra">       pypy3 setup.py install<br><br><br></div><div \
class="gmail_extra">A bientôt,<br><br></div><div \
class="gmail_extra">Armin.<br></div></div>



_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic