[lxml-dev] lxml \ libxslt \ libxml2 leads to apache 2 crash on freebsd/amd64

Stefan Behnel stefan_ml at behnel.de
Thu Dec 27 09:43:40 CET 2007


Hi,

Dmitri Fedoruk wrote:
>> For a quick shot: could you try switching to lxml 2.0alpha6 to see if the
>> problem persists?
> Hm, switching turned out not to be a pice of cake - in fact, some
> transformations do not run at all.
> 1) There is a template that was processed with lxml 1.3.x with no
> problem, but it can not be processed in 2.0: "Entity 'mdash' not
> defined, line 67, column 43". All entities are defined in an included
> file. There are two similar templates that are processed with no
> problem both in 1.3.x and 2.0

There were changes regarding entities in 2.0. They are now supported as real
Element classes rather than requiring the parser to resolve them (which could
cause problems in 1.3 if they were not resolved). This change is up to the
parser configuration and therefore shouldn't normally touch old code. But as I
do not know what exactly you are doing, I can't guess what the impact is in
your case.


> 2) I get something like this:
> function takes at most 1 positional arguments (2 given)

This comes from one of the API changes for requiring keyword-only arguments
for optional parameters. You should be able to use keyword arguments here in
both 2.0 and 1.3.

Stefan



More information about the lxml-dev mailing list