I wanted to install the Python ImageMagick API stick and follow this site:
http://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows
However, when performing a very simple test:
from wand.image import Image
I get the following output:
Traceback (last last call):
File "F: \ PATHTO \ Python34 \ lib \ site-packages \ wand \ api.py", line 137, in libraries = load_library ()
File "F: \ PATHTO \ Python34 \ lib \ site-packages \ wand \ api.py", line 107, in load_library raise IOError ('cannot find library, checked paths:' + repr (try_paths))
OSError: Unable to find the library; Simple paths: ['F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_.dll', 'F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_HDRI.dll', 'F: \ PATHTO \ ImageMagick- 6.8.9-Q16 \ CORE_RL_wand_-Q16.dll ',' F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_-Q16HDRI.dll ',' F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_- Q8.dll ',' F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_-Q8HDRI.dll ',' F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_-6.Q16.dll ',' F: \ PATHTO \ ImageMagick-6.8.9-Q16 \ CORE_RL_wand_-6.Q16HDRI.dll ']
When processing the above exception, another exception occurred:
Traceback (last last call): File "D: \ PATHTO \ Python \ test.py", line 1, in import wand.image
File "F: \ PATHTO \ Python34 \ lib \ site-packages \ wand \ image.py", line 20, from .api import MagickPixelPacket, libc, libmagick, library
File "F: \ PATHTO \ Python34 \ lib \ site-packages \ wand \ api.py", line 161, in 'Try installing: \ n' + msg)
ImportError: MagickWand shared library not found. You probably did not install the ImageMagick library. Try installing: http://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows
However, files that were found (such as CORE_RL_wand_.dll) are located where they were not found. I seem to have set MAGICK_HOME env. right.
However (which seems wrong) the paths to the api stick and my Python installation are displayed with one backslash on my command line, while the paths to the ImageMagick folder are displayed with two of them.
I donโt understand why this is so (the env. Variable uses single backslashes, like on a linked site), and I donโt know if this is a problem or even related to it.