pip install results in undefined symbol: XML_SetHashSalt

# python3 -m pip install --upgrade google-api-python-client
Traceback (most recent call last):
File "/usr/lib64/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.4/site-packages/pip/__main__.py", line 16, in
from pip._internal import main as _main # noqa
File "/usr/lib/python3.4/site-packages/pip/_internal/__init__.py", line 42, in
from pip._internal import cmdoptions
File "/usr/lib/python3.4/site-packages/pip/_internal/cmdoptions.py", line 16, in
from pip._internal.index import (
File "/usr/lib/python3.4/site-packages/pip/_internal/index.py", line 16, in
from pip._vendor.distlib.compat import unescape
File "/usr/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py", line 83, in
import xmlrpc.client as xmlrpclib
File "/usr/lib64/python3.4/xmlrpc/client.py", line 137, in
from xml.parsers import expat
File "/usr/lib64/python3.4/xml/parsers/expat.py", line 4, in
from pyexpat import *
ImportError: /usr/lib64/python3.4/lib-dynload/pyexpat.cpython-34m.so: undefined symbol: XML_SetHashSalt
# ldd /usr/lib64/python3.4/lib-dynload/pyexpat.cpython-34m.so
linux-vdso.so.1 => (0x00007fffaefc4000)
libexpat.so.1 => /ora12cClient/oracle/app/oracle/product/12.1.0.2/client/lib/libexpat.so.1 (0x00007f1939572000)
libpython3.4m.so.1.0 => /lib64/libpython3.4m.so.1.0 (0x00007f19390de000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1938ec2000)
libc.so.6 => /lib64/libc.so.6 (0x00007f1938aff000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f19388fa000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f19386f7000)
libm.so.6 => /lib64/libm.so.6 (0x00007f19383f5000)
/lib64/ld-linux-x86-64.so.2 (0x0000559b24b1f000)
# echo $LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=/usr/lib64
# ldd /usr/lib64/python3.4/lib-dynload/pyexpat.cpython-34m.so
linux-vdso.so.1 => (0x00007ffef39b1000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f20c7b7b000)
libpython3.4m.so.1.0 => /usr/lib64/libpython3.4m.so.1.0 (0x00007f20c76e7000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f20c74cb000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007f20c7108000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f20c6f04000)
libutil.so.1 => /usr/lib64/libutil.so.1 (0x00007f20c6d00000)
libm.so.6 => /usr/lib64/libm.so.6 (0x00007f20c69fe000)
/lib64/ld-linux-x86-64.so.2 (0x000055a1cf2f4000)
# python3 -m pip install --upgrade google-api-python-client
Collecting google-api-python-client
...

This entry was posted in Uncategorized on by .

About morgan

Morgan is a freelance IT consultant living in Philadelphia. He lives with his girlfriend in an old house in Fishtown that they may never finish renovating. His focus is enterprise Messaging (think email) and Directory. Many of his customers are education, school districts and Universities. He also gets involved with most aspects of enterprise Linux and UNIX (mostly Solaris) administration, Perl, hopefully Ruby, PHP, some Java and C programming. He holds a romantic attachment to software development though he spends most of his time making software work rather than making software. He rides motorcycles both on and off the track, reads literature with vague thoughts of giving up IT to teach English literature.

Leave a Reply

Your email address will not be published. Required fields are marked *