[lxml-dev] ERESTARTNOHAND error
Stefan Behnel
stefan_ml at behnel.de
Fri Aug 31 11:31:10 CEST 2007
Frédéric Mantegazza wrote:
> Le vendredi 31 août 2007 10:38, Frédéric Mantegazza a écrit :
>
>> But I have to investigate a little deeper, because I'm wondering if the
>> ERESTARTNOHAND is not a consequence of another problem...
>
> Ok, I would like to see exaclty when the error occurs inside the apply()
> method...
>
> I'm not familiar with pyrex... What can I use to print debug messages in
> lxml-1.3.4/src/lxml/xslt.pxi, in the __call__() methode of XLST class?
Most Python code is also valid Pyrex/Cython code. Just use "print".
> PS: BTW, my call to XSLT.apply() is made from a thread which is itself
> launched by a thread. Could it be a problem for lxml? As I said, I was
> previously using python-libxslt1 and python-libxml2 without any problem,
> under the same conditions...
The problem is not how many threads there are but where you create an XSLT
object and where you use it. Try creating it in the thread where you use it.
Mostly for performance reasons, lxml behaves quite different from python-libxml2.
Stefan
More information about the lxml-dev
mailing list