简体   繁体   English

Pystacia在OS X上找不到MagickWand

[英]Pystacia can't find MagickWand on OS X

For some odd reason Pystacia is not able to find MagickWand.h on OS X. 由于某些奇怪的原因,Pystacia无法在OS X上找到MagickWand.h。

I tried to tweak $DYLD_LIBRARY_PATH and $C_INCLUDE_PATH but no luck. 我尝试调整$ DYLD_LIBRARY_PATH和$ C_INCLUDE_PATH,但是没有运气。

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: 我进一步分析了pystacia如何查找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. 在查看bitbucket的最新pystacia代码后,我意识到pip的版本相当老(自2011年起),最新版本的安装解决了我的问题-因为我有能力运行未发布的代码。

I also entered an Issue on bitbucket so the maintainer put out a new code release. 我还在bitbucket上输入了一个问题,因此维护人员发布了新的代码版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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