[lxml-dev] why this works on fedora and don't work on debian
Sergio Monteiro Basto
sergio at sergiomb.no-ip.org
Fri Jun 19 23:33:26 CEST 2009
Good:
In [1]: from lxml import etree
In [3]: print "lxml.etree: ", etree.LXML_VERSION
('lxml.etree: ', (2, 2, 1, 0))
In [5]: print "libxml used: ", etree.LIBXML_VERSION
('libxml used: ', (2, 7, 3))
In [6]: print "libxml compiled: ", etree.LIBXML_COMPILED_VERSION
('libxml compiled: ', (2, 7, 3))
In [7]: print "libxslt used: ", etree.LIBXSLT_VERSION
('libxslt used: ', (1, 1, 24))
In [8]: print "libxslt compiled: ", etree.LIBXSLT_COMPILED_VERSION
('libxslt compiled: ', (1, 1, 24))
bad:
In [1]: from lxml import etree
In [3]: print "lxml.etree: ", etree.LXML_VERSION
lxml.etree: (2, 2, 1, 0)
In [5]: print "libxml used: ", etree.LIBXML_VERSION
libxml used: (2, 6, 32)
In [6]: print "libxml compiled: ", etree.LIBXML_COMPILED_VERSION
libxml compiled: (2, 6, 32)
In [7]: print "libxslt used: ", etree.LIBXSLT_VERSION
libxslt used: (1, 1, 24)
In [8]: print "libxslt compiled: ", etree.LIBXSLT_COMPILED_VERSION
libxslt compiled: (1, 1, 24)
On Fri, 2009-06-19 at 12:52 -0700, Ted Dziuba wrote:
> 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
>
--
Sérgio M. B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2192 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20090619/d370df40/attachment-0001.bin
More information about the lxml-dev
mailing list