[lxml-dev] Help getting lxml to work reliably on MacOS-X

Jon Rosebaugh chairos at gmail.com
Mon Feb 4 09:52:46 CET 2008


On Feb 4, 2008 2:45 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Hi,
>
> it looks like many Mac users have problems with lxml on their platform. This
> usually involves installing up-to-date dependencies (libxml2/libxslt) in
> addition to the system libraries. I would like to get these problems resolved.

For whatever it's worth, I could usually get lxml to work by itself,
when it was the only thing imported in the python interpreter. The
problem came when it was imported in a webapp with a bunch of other
modules. I believe threading may also have been involved.

I'll try to fill out a full report in the next few days, but I've
actually obviated my need for lxml by porting lxml.html.clean to
BeautifulSoup. It runs nicely and all the tests pass after adjusting
for whitespace differences.


More information about the lxml-dev mailing list