XML::LibXML Operation in Progress

perigrin on 2006-09-27T15:12:55

So I've been playing around with AxKit2 on my laptop. It's a very nice enviroment for playing. Matt and Jorge have done fun things so far. Since I ran into an issue with XML::LibXML twice, before and after the old laptop died, I want to post the solution so I can find it again later.



127.0.0.1:52145 L3 FATAL PLUGIN ERROR: Operation in progressOperation in progressOperation in progressOperation in progressOperation in progressOperation in progress at /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/XML/LibXML.pm line 530.


Turns out this is libxml trying to lookup external enttiies on the net. Which was failing behind my firewalled/proxy environment. The solution is give libxml net access, in my case by using tsocks and a Socks proxy. Hope this helps.


The other solution

Aristotle on 2006-09-28T03:46:12

Just tell libxml2 it should not try to load external entities from the network.

Obviously that only works if you don’t need them, but you often don’t. F.ex. when processing XHTML documents with a declared DTD, libxml2 will ordinarily try to load the DTDs from the W3C site – not usually intended.

If you do need external entities, you can still get by without a connection by using a catalog to supply them locally.

operation in progress and libxml

ericleasemorgan on 2006-11-27T21:48:39

This posting worked for me. In fact, it gave me just the right hints (looking at LibXML's ability to connect to something over the network). This posting was so helpful, I event went so far as to sign up to sign this blog. Thank you!