mountain lion install problem #44
Comments
Looks strange. The same steps work fine for me. |
What is your |
Michael, (1) I've got /opt/local/lib/libMagickWand.dylib Thanks, On Fri, Aug 24, 2012 at 12:32 AM, Michael Elovskikh <
|
Neither one of these appears to be set. Thanks, On Fri, Aug 24, 2012 at 2:42 AM, Hong Minhee notifications@github.comwrote:
|
Update: I tried setting MAGICK_HOME=/opt/local/lib and DYLD_LIBRARY_PATH=/opt/local/lib, but that didn't have any effect. |
@swgreen You should set |
Okay, I tried that now and it didn't have any effect. $ echo $MAGICK_HOME
On Fri, Aug 24, 2012 at 6:01 PM, Hong Minhee notifications@github.comwrote:
|
@swgreen Can you insert |
Sorry for the delay. I'm back on the case. Here's the traceback. Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
On Fri, Aug 24, 2012 at 7:06 PM, Hong Minhee notifications@github.comwrote:
|
I had this same issue, and setting my $MAGICK_HOME to /opt/local fixed it. |
I'm using OSX mountain lion and brew instead of macport. So I tried this. import os, ctype
libpath = '/usr/local/lib/libMagickWand.dylib'
libwand = ctypes.CDLL(libpath)
It seems that there is a problem with libjpeg installed by brew. I replaced the libjpeg link with OSX's libjpeg.
Problem solved. |
Same issue here. (wand)~/works/wand <master>$ brew install imagemagick
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/imagemagick
Already downloaded: /Library/Caches/Homebrew/imagemagick-6.8.0-10.mountainlion.bottle.tar.gz
==> Pouring imagemagick-6.8.0-10.mountainlion.bottle.tar.gz
==> Caveats
Some tools will complain unless the ghostscript fonts are installed to:
/usr/local/share/ghostscript/fonts
==> Summary
/usr/local/Cellar/imagemagick/6.8.0-10: 1422 files, 45M
(wand)~/works/wand <master>$ MAGICK_HOME=/usr/local/Cellar/imagemagick/6.8.0-10 python -m wand.api
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/khj/works/wand/wand/api.py", line 128, in <module>
'Try to install:\n ' + msg)
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
brew install imagemagick
(wand)~/works/wand <master>$ brew install imagemagick
Error: imagemagick-6.8.0-10 already installed I am on OS X 10.8.2. |
(wand)~/works/web <master>$ ls /usr/local/lib/libMagickWand*
/usr/local/lib/libMagickWand-Q16.7.dylib
/usr/local/lib/libMagickWand-Q16.dylib
/usr/local/lib/libMagickWand-Q16.la So I did it and solved: $ ln -s /usr/local/lib/libMagickWand-Q16.7.dylib /usr/local/lib/libMagickWand.dylib |
Certainly part of the issue is as kinjayd stated above is 2 fold:
|
It is not necessary to set MAGICK_HOME with homebrew. Making the symlink from libMagickWand-Q16.7.dylib to libMagickWand.dylib, as noted by kimjayd, solves the problem. I think this is an issue with ImageMagick, not with wand. There should already be a symlink to the versioned library, and there is not. |
As written, api.py references MAGICK_HOME, so it should either be optional or taken care of as I stated in 1 and 2. It's kind of bad form to make creating a symlink a dependency I think. If I had time I would fix this. |
Wand can become to try several possible versions if there’s no loadable |
api.py references MAGICK_HOME, but my point is that the problem with a homebrew install has nothing to do with MAGICK_HOME. It's already looking in the right place by default, so changing MAGICK_HOME does nothing. As Dahlia noted, the fix is to check for multiple version numbers. The symlink is just a workaround. |
Using Wand 0.2.3 I ended up upgrading from Python 2.7.2 to 2.7.3. This resolved my issue. Using Pythonbrew on OS X 10.7.5. |
kimjayd's symbolic link worked for me (thanks!), but note that there is a typo in the command. It should be:
|
@nofeet yap I fixed it. ( |
+1 on that symlink. Had the issue on a macbook pro OS X 10.7.5 |
I ran into this problem as well. Just placing that symlink didn't help. I had to do the following as well:
It threw an error:
This happens because two symlinks were still in place:
So I deleted them and ran Now it seems to work. |
My homebrew install missed a package:
Fixed with |
I have found a solution. Create a symbol link from libMagickWand-6.Q16.dylib to libMagickWand.dylib |
Thanks @sp-ivan-ortega ! This works for me. |
Thanks @sp-ivan-ortega ! This works for me,too! |
Hello,
Maybe I'm missing a step, but I got the same result on multiple machines:
sudo port install ImageMagick => successful
sudo easy_install wand => successful
then in python interactive mode:
from wand.image import Image
throws error:
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.8-intel/egg/wand/image.py", line 19, in
File "build/bdist.macosx-10.8-intel/egg/wand/api.py", line 266, in
ImportError: MagickWand shared library not found or incompatible
Am I missing a step?
Thanks!
The text was updated successfully, but these errors were encountered: