Saturday, March 05, 2011

Thanks, python programmers...

I need to extract information from word documents.

So I went hunting and found a lovely library for writing and reading docx files: https://github.com/mikemaccana/python-docx

But it required the PIL library, and there is no installer for available for PIL and python 2.7 (which is the default on Snow Leopard).

So I went looking and found this crystal clear recipe for building PIL on Snow Leopard.
http://nyteshade.posterous.com/

Unlike most such recipes (in my experience), this just worked.

And then python-dox just worked.

So thanks!