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

initialization of _pgmagick raised unreported exception and undefined symbol #54

Open
jiaweiwei32 opened this issue Jul 17, 2019 · 1 comment
Assignees

Comments

@jiaweiwei32
Copy link

jiaweiwei32 commented Jul 17, 2019

hello
There are some problems in your way. I hope you can help me to solve them.
Here's my environmental information
system:centos6.9 centos7.2
python:3.6.5 3.6.8 and 3.6.x
install:yum or source code
question:The problem with yum installation is SystemError: initialization of _pgmagick raised unreported exception
,The problem with my source installation is /usr/lib64/python3.6/site-packages/pgmagick/_pgmagick.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE
There are too many machines changed, so are the versions.boost-python has tried it in many ways

ldd result
linux-vdso.so.1 => (0x00007ffe5d1b3000)
libboost_python-mt.so.5 => /usr/lib64/libboost_python-mt.so.5 (0x00007fcbc7be3000)
libGraphicsMagick++.so.12 => /usr/local/lib/libGraphicsMagick++.so.12 (0x00007fcbc7955000)
libstdc++.so.6 => /usr/local/lib64/libstdc++.so.6 (0x00007fcbc764c000)
libm.so.6 => /lib64/libm.so.6 (0x00007fcbc73c8000)
libgcc_s.so.1 => /usr/local/lib64/libgcc_s.so.1 (0x00007fcbc71b2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcbc6f95000)
libc.so.6 => /lib64/libc.so.6 (0x00007fcbc6c01000)
librt.so.1 => /lib64/librt.so.1 (0x00007fcbc69f9000)
libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 (0x00007fcbc6653000)
libGraphicsMagick.so.3 => /usr/local/lib/libGraphicsMagick.so.3 (0x00007fcbc61c4000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fcbc5f27000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007fcbc5d01000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fcbc5aef000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007fcbc58e7000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007fcbc56cb000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fcbc538e000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fcbc517d000)
libz.so.1 => /lib64/libz.so.1 (0x00007fcbc4f67000)
libgomp.so.1 => /usr/local/lib/../lib64/libgomp.so.1 (0x00007fcbc4d59000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcbc8368000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fcbc4b55000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fcbc4952000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fcbc474e000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fcbc4529000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fcbc4326000)

@jiaweiwei32
Copy link
Author

I encountered the same problem in Ubuntu 16.04.3.But I've settled it.The error message is ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type
and my solution is
cp /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0 .
rm -f /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0
ln -sv /usr/lib/x86_64-linux-gnu/libboost_python-py35.so.1.58.0 /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0

@hhatto hhatto self-assigned this Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants