Installing PythonMagick on OS X
brew install boost
- will take a lot of time and make your Mac hotbrew install --with-magick-plus-plus imagemagick
cd <path_to_PythonMagick_source>
./configure --with-boost=<path_to_boost_root>
make
make install
python -c "import PythonMagick"
If PythonMagick build fails saying that it couldn't find -lboost_python
navigate to <path_to_boost_root>/lib/
, ln -s libboost_python-mt.dylib libboost_python.dylib
and run make again.
Tested on 10.6.8 with Python 2.6.7 (custom build). Should work with Lion running stock 2.7.
NOTE: Looks like I was too quick to call it done. The module imports but raises exceptions when used. Bummer.
Due to changes in the ImageMagick API for version 7 and later, as of PythonMagick-0.9.18 there are some broken hooks that will raise Symbol Not Found errors when attempting to import the dynamic library, and possibly a KeyError('cacheThreshold') when attempting to import PythonMagick. In addition to the above steps (using homebrew to install ImageMagick, boost, boost-python etc). You may also need to apply the following changes. Here I have done a 'git diff' on my version (working on MacOS 10.12.6 with ImageMagick 7.0.5) against the current master branch as of late Dec 2017.