Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import failed in python3, undefined symbol. #14

Open
kiss187 opened this issue Nov 28, 2017 · 1 comment
Open

import failed in python3, undefined symbol. #14

kiss187 opened this issue Nov 28, 2017 · 1 comment

Comments

@kiss187
Copy link

kiss187 commented Nov 28, 2017

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.

@djorlando24
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants