简体   繁体   中英

Pystacia can't find MagickWand on OS X

For some odd reason Pystacia is not able to find MagickWand.h on OS X.

I tried to tweak $DYLD_LIBRARY_PATH and $C_INCLUDE_PATH but no luck.

I have imagemagick up and running.

$ mdfind MagickWand.h 
/usr/local/Cellar/imagemagick/6.8.010/share/doc/ImageMagick/www/api/MagickWand/struct__MagickWand.html
/usr/local/Cellar/imagemagick/6.8.0-10/include/ImageMagick/wand/MagickWand.h

And keep getting this error:

>>> import pystacia
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/pystacia/__init__.py", line 193, in <module>
init()
File "/Library/Python/2.7/site-packages/pystacia/__init__.py", line 28, in init
raise TinyException('Could not find or load magickWand')
pystacia.util.TinyException: Could not find or load magickWand

I went further down to figure it out how pystacia looks for MagickWand.h:

from ctypes.util import find_library
resolved_path = find_library('MagickWand')
if not resolved_path:
    raise PystaciaException('Could not find or load magickWand')

Still no lucky.

Looking to the latest pystacia code from bitbucket I realized that the version from pip is pretty old (from 2011) and a installation from the latest code solved my problem -- as I can afford to run unreleased code.

I also entered an Issue on bitbucket so the maintainer put out a new code release.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM