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:<br>
<font style="font-family: courier new,monospace;" size="2"><br></font><pre><font style="font-family: courier new,monospace;" size="2">from lxml import etree<br><br>print "lxml.etree: ", etree.LXML_VERSION<br>
print "libxml used: ", etree.LIBXML_VERSION<br>print "libxml compiled: ", etree.LIBXML_COMPILED_VERSION<br>print "libxslt used: ", etree.LIBXSLT_VERSION<br>print "libxslt compiled: ", etree.LIBXSLT_COMPILED_VERSION</font><br>
</pre>On my workstation the above script outputs:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ted@gonzo:~$ python lxml_versions.py </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">lxml.etree: (2, 1, 2, 0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">libxml used: (2, 7, 2)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">libxml compiled: (2, 7, 2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">libxslt used: (1, 1, 22)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">libxslt compiled: (1, 1, 22</span>)<br><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">Ted</span><br><br><div class="gmail_quote">
On Fri, Jun 19, 2009 at 11:35 AM, Sergio Monteiro Basto <span dir="ltr"><<a href="mailto:sergio@sergiomb.no-ip.org">sergio@sergiomb.no-ip.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, 2009-06-19 at 10:40 -0700, Ted Dziuba wrote:<br>
> Are your versions of libxml and libxslt the same?<br>
</div>libxml no<br>
/usr/lib/libxml2.so.2.7.3<br>
/usr/lib/libxml2.so.2.6.32<br>
<br>
but libxslt yes<br>
/usr/lib/libxslt.so.1.1.24<br>
/usr/lib/libxslt.so.1.1.24<br>
<div><div></div><div class="h5"><br>
<br>
><br>
> Ted<br>
><br>
> On Fri, Jun 19, 2009 at 10:21 AM, Sergio Monteiro Basto<br>
> <<a href="mailto:sergio@sergiomb.no-ip.org">sergio@sergiomb.no-ip.org</a>> wrote:<br>
> Hi,<br>
> I had install python lxml-2.2.1 on both machines<br>
><br>
> $ python testing.py on fedora ['nuevologo.jpg',<br>
> '<a href="http://www.google.com/logos/Logo_25wht.gif" target="_blank">http://www.google.com/logos/Logo_25wht.gif</a>',<br>
> 'secciones/movil/promo.gif', 'img-noticias/AAA_279.JPG',<br>
> 'img-noticias/bresuc_508.jpg',<br>
> 'img-noticias/nacional_116.JPG',<br>
> 'img-noticias/CONOMI1_84.JPG',<br>
> '<a href="http://www.tutiempo.net/imagenes_asociados/84x38/SVVG.png" target="_blank">http://www.tutiempo.net/imagenes_asociados/84x38/SVVG.png</a>',<br>
> '../web/webfisico/paginas/01_220.jpg', 'digitales.jpg',<br>
> 'bannermi.gif',<br>
> '<a href="http://pikis.net/banner/pikis_banner1_3.jpg" target="_blank">http://pikis.net/banner/pikis_banner1_3.jpg</a>']<br>
><br>
> on debian<br>
> $ python testing.py<br>
> ['nuevologo.jpg',<br>
> '<a href="http://www.google.com/logos/Logo_25wht.gif" target="_blank">http://www.google.com/logos/Logo_25wht.gif</a>']<br>
><br>
> Note: the page have a double <html></html><br>
> on fedora the two html are consider<br>
> on debian no .<br>
> but I need this works on debian<br>
><br>
> What could I do ?<br>
><br>
> --<br>
> Sérgio M. B.<br>
><br>
><br>
> _______________________________________________<br>
> lxml-dev mailing list<br>
> <a href="mailto:lxml-dev@codespeak.net">lxml-dev@codespeak.net</a><br>
> <a href="http://codespeak.net/mailman/listinfo/lxml-dev" target="_blank">http://codespeak.net/mailman/listinfo/lxml-dev</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Ted Dziuba<br>
> Co-Founder and Engineer<br>
><br>
> Milo.com, Inc.<br>
> 165 University Avenue<br>
> Palo Alto, CA, 94301<br>
> <a href="http://milo.com" target="_blank">http://milo.com</a><br>
><br>
> Cell: (609)-665-2639<br>
><br>
</div></div><font color="#888888">--<br>
Sérgio M. B.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ted Dziuba<br>Co-Founder and Engineer<br><br>Milo.com, Inc.<br>165 University Avenue<br>Palo Alto, CA, 94301<br><a href="http://milo.com">http://milo.com</a><br><br>
Cell: (609)-665-2639<br><br>