[lxml-dev] why this works on fedora and don't work on debian

Ted Dziuba ted at milo.com
Fri Jun 19 21:52:22 CEST 2009


It doesn't seem like there would be such a stark difference in functionality
across minor versions of libxml, but I suppose it's not out of the
question.  Also check that the version you see in /usr/lib is actually the
version that lxml is loading, and that the compilation versions match the
runtime versions:

from lxml import etree

print "lxml.etree:       ", etree.LXML_VERSION
print "libxml used:      ", etree.LIBXML_VERSION
print "libxml compiled:  ", etree.LIBXML_COMPILED_VERSION
print "libxslt used:     ", etree.LIBXSLT_VERSION
print "libxslt compiled: ", etree.LIBXSLT_COMPILED_VERSION

On my workstation the above script outputs:

ted at gonzo:~$ python lxml_versions.py
lxml.etree:        (2, 1, 2, 0)
libxml used:       (2, 7, 2)
libxml compiled:   (2, 7, 2)
libxslt used:      (1, 1, 22)
libxslt compiled:  (1, 1, 22)

Ted

On Fri, Jun 19, 2009 at 11:35 AM, Sergio Monteiro Basto <
sergio at sergiomb.no-ip.org> wrote:

> On Fri, 2009-06-19 at 10:40 -0700, Ted Dziuba wrote:
> > Are your versions of libxml and libxslt the same?
> libxml no
> /usr/lib/libxml2.so.2.7.3
> /usr/lib/libxml2.so.2.6.32
>
> but libxslt yes
> /usr/lib/libxslt.so.1.1.24
> /usr/lib/libxslt.so.1.1.24
>
>
> >
> > Ted
> >
> > On Fri, Jun 19, 2009 at 10:21 AM, Sergio Monteiro Basto
> > <sergio at sergiomb.no-ip.org> wrote:
> >         Hi,
> >         I had install python lxml-2.2.1 on both machines
> >
> >         $ python testing.py on fedora ['nuevologo.jpg',
> >         'http://www.google.com/logos/Logo_25wht.gif',
> >         'secciones/movil/promo.gif', 'img-noticias/AAA_279.JPG',
> >         'img-noticias/bresuc_508.jpg',
> >         'img-noticias/nacional_116.JPG',
> >         'img-noticias/CONOMI1_84.JPG',
> >         'http://www.tutiempo.net/imagenes_asociados/84x38/SVVG.png',
> >         '../web/webfisico/paginas/01_220.jpg', 'digitales.jpg',
> >         'bannermi.gif',
> >         'http://pikis.net/banner/pikis_banner1_3.jpg']
> >
> >         on debian
> >         $ python testing.py
> >         ['nuevologo.jpg',
> >         'http://www.google.com/logos/Logo_25wht.gif']
> >
> >         Note: the page have a double <html></html>
> >         on fedora the two html are consider
> >         on debian no .
> >         but I need this works on debian
> >
> >         What could I do ?
> >
> >         --
> >         Sérgio M. B.
> >
> >
> >         _______________________________________________
> >         lxml-dev mailing list
> >         lxml-dev at codespeak.net
> >         http://codespeak.net/mailman/listinfo/lxml-dev
> >
> >
> >
> >
> > --
> > Ted Dziuba
> > Co-Founder and Engineer
> >
> > Milo.com, Inc.
> > 165 University Avenue
> > Palo Alto, CA, 94301
> > http://milo.com
> >
> > Cell: (609)-665-2639
> >
> --
> Sérgio M. B.
>



-- 
Ted Dziuba
Co-Founder and Engineer

Milo.com, Inc.
165 University Avenue
Palo Alto, CA, 94301
http://milo.com

Cell: (609)-665-2639
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20090619/d966078a/attachment.htm 


More information about the lxml-dev mailing list