[lxml-dev] Potential bug in trunk

Stefan Behnel stefan_ml at behnel.de
Sun Sep 16 17:38:30 CEST 2007


Anders Bruun Olsen wrote:
> I've run into a weird problem. I am making a CherryPy-based application
> which uses lxml to do XSLT conversion of XML before sending it to the
> browser. It worked fine before switching to trunk (which has the
> namespace-patch that I need). Here is the output:
> 
> [13/Sep/2007:13:08:37] HTTP Serving HTTP on http://0.0.0.0:8080/
> [13/Sep/2007:13:08:44]  Traceback (most recent call last):
> etree._ParserDictionaryContext.getDefaultParser
>   File "parser.pxi", line 585, in etree._BaseParser._copy
> AttributeError: 'lxml.etree._ResolverRegistry' object has no attribute
> '_copy'
> 
> Anybody able to venture a guess as to where this bug might lie? Is it in
> lxml, cherrypy or my code?

It was a bug in lxml that came in as part of the parser code refactoring. I
fixed it for alpha2. Thanks for the report.

Stefan


More information about the lxml-dev mailing list