PythonMagick icon indicating copy to clipboard operation
PythonMagick copied to clipboard

Head not compatable with ImageMagick head (known compatability listed)

Open pwolfram opened this issue 8 years ago • 1 comments

Compatibility appears to be constrained to ImageMagick 6.X, not 7.X because of C++ template / class errors as well as class redefinition.

Versions that appear to work together in linux:

  • ImageMagick 6.9.5-0 (https://anaconda.org/pwolfram/imagemagick)
  • PythonMagick 0.9.12 (https://anaconda.org/pwolfram/pythonmagick)
  • boost 1.57.0-4.

Note, versions not fully tested / vetted. Caveat emptor

Full list of packages for build:

boost:       1.57.0-4           
cloog:       0.18.0-0           
gcc:         4.8.5-6            
gmp:         5.1.2-2            
icu:         54.1-0             
imagemagick: 6.9.5-0       local
isl:         0.12.2-0           
libgcc:      5.2.0-0            
libtool:     2.4.2-0            
mpc:         1.0.1-0            
mpfr:        3.1.2-0            
openssl:     1.0.2h-1           
pip:         8.1.2-py27_0       
pkg-config:  0.28-1             
python:      2.7.12-1           
readline:    6.2-2              
setuptools:  25.1.6-py27_0      
sqlite:      3.13.0-0           
tk:          8.5.18-0           
wheel:       0.29.0-py27_0      
zlib:        1.2.8-3            

pwolfram avatar Aug 10 '16 04:08 pwolfram

FYI-- the binaries don't appear to be platform independent even though they work on the compiled platform, e.g., trying on Ubuntu when compiled on TOSS via conda-recipies yields:

In [1]: import PythonMagick
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a4966174322d> in <module>()
----> 1 import PythonMagick

/home/pwolfram/miniconda/envs/test_pythonmagick/lib/python2.7/site-packages/PythonMagick/__init__.py in <module>()
----> 1 from . import _PythonMagick
      2 
      3 class Image(_PythonMagick.Image):
      4     pass
      5 

ImportError: libboost_python.so.5: cannot open shared object file: No such file or directory

Recipes used at https://github.com/pwolfram/conda-recipes/tree/icc_mods in imagemagick and pythonmagick folders.

Advice on generalization to make these platform-independent is appreciated.

pwolfram avatar Aug 10 '16 04:08 pwolfram