Skip to content

import failed in python3, undefined symbol. #14

@kiss187

Description

@kiss187

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:

  • ./configure --with-python-min-version=3.5
  • sudo make && sudo make install

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions