Home > Tech > Couldn’t find libtidy with utidylib on MacOSX

Couldn’t find libtidy with utidylib on MacOSX

January 5th, 2009

Quick tip. Since the dev only built a windows binary for version 0.2.1 of uTidyLib, this bugfix for locating the dynamic libtidy on macosx is necessary.

Just edit tidy/lib.py, re-run the setup install script, and it suddenly can find libtidy.

Tech

  1. March 30th, 2009 at 20:21 | #1

    I’ve been doing a lot of tidying and thought uTidyLib was useful but had the same problem, since I’m on OS X. While I was fixing it, I also found a few other issues, including a memory leak when running tidy many times in the same process. Since the library hasn’t been updated in a while, I created my own. It supports OS X, 64bit systems (workaround for an issue when running under modwsgi or modpython), and unicode.

    You can easy_install pytidylib or get it and the docs from http://countergram.com/software/pytidylib/. It’s a 0.1 release, so I’d appreciate feedback. It’s a 0.1 release, so I’d appreciate feedback.

  1. No trackbacks yet.