ImageMagick / PythonMagick

PythonMagick
Other
61 stars 20 forks source link

import failed in python3, undefined symbol. #14

Open kiss187 opened 7 years ago

kiss187 commented 7 years ago

imagemagick version: 7.0.7-11 python version: 3.5.2 pythonmagick version: 0.9.18

I build ImageMagick from github, there is no error in build log. the print of convert --version

Version: ImageMagick 7.0.7-11 Q8 x86_64 2017-11-27 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP Delegates (built-in): fontconfig freetype jbig jng jp2 jpeg lzma pangocairo png tiff webp x zlib

and build PythonMagick as following steps:

when I import PythonMagick in python3 interpreter, there is an error

Traceback (most recent call last): File "/home/whh/project/mihui_img_server/pg.py", line 4, in import PythonMagick File "/usr/local/lib/python3.5/site-packages/PythonMagick/init.py", line 1, in from . import _PythonMagick ImportError: /usr/local/lib/python3.5/site-packages/PythonMagick/_PythonMagick.so: undefined symbol: _Z30Export_pyste_src_DrawableMattev

appreciation for any help. thanks.

djorlando24 commented 6 years ago

Whoops, I just opened a new issue on what I think is the same problem. I thought my issue was OS-specific, perhaps not. I have a solution - check the suggested diffs.