Update
Perhaps this is the cause?
>>> from ctypes import *
>>> cdll.LoadLibrary('libMagickWand-6.Q16.so.2')
...
OSError: /home/myuname/anaconda3/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so.2)
Unclear how to fix though.
Using the python wand package. Followed installation instructions by running:
sudo apt install libmagickwand-dev imagemagick
pip install wand
But I get the following error when trying to import Image:
>>> from wand.image import Image
...
raise IOError('cannot find library; tried paths: ' + repr(tried_paths))
OSError: cannot find library; tried paths: ['libMagickWand-6.Q16.so.2', 'libMagickWand-6.Q16.so.2']
During handling of the above exception, another exception occurred:
...
ImportError: MagickWand shared library not found.
You probably had not installed ImageMagick library.
Try to install:
apt-get install libmagickwand-dev
Not sure what's going on. Running ldconfig -p | grep -i wand
gives me:
libMagickWand-6.Q16.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so.2
libMagickWand-6.Q16.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so
Also running ctypes shows the library:
>>> from ctypes.util import find_library
>>> find_library('MagickWand')
'libMagickWand-6.Q16.so.2'
Confirm that it's not v7:
$ convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-05-26 http://www.imagemagick.org
python-wand
. I've updated my question as I might have found the underlying issue. Still don't know how to fix though. – Kamil Sindi Jul 16 '17 at 18:52/home/ksindi/anaconda3/lib/python/site-packages
then maybe conda is using a different version of Python like/home/ksindi/anaconda3/lib/python3.5/site-packages
– karel Jul 16 '17 at 19:14