Python lib/python2.7/lib-dynload/_io.so: undefined symbol: _PyErr_ReplaceException -


i'm trying set ssl certificate letsencrypt, when run following:

user@box:/opt/letsencrypt$ ./letsencrypt-auto --apache -d example.com updating letsencrypt , virtual environment dependencies...traceback (most recent call last):   file "/home/user/.local/share/letsencrypt/bin/pip", line 7, in <module> pip import main   file "/home/user/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/__init__.py", line 13, in <module> pip.utils import get_installed_distributions, get_prog   file "/home/user/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 15, in <module> import zipfile   file "/usr/lib/python2.7/zipfile.py", line 6, in <module> import io   file "/usr/lib/python2.7/io.py", line 51, in <module> import _io importerror: /home/user/.local/share/letsencrypt/lib/python2.7/lib-dynload/_io.so: undefined symbol: _pyerr_replaceexception 

python -v returns python 2.7.11.

i've tried lot of other threads , not managed work.

sounds io module being loaded against wrong version of libpython.

here's how looks on system, io uses symbol , libpython provides it:

air:~ dima$ nm  /library/frameworks/python.framework/versions/2.7/lib/python2.7/lib-dynload/_io.so | grep -i replaceex                  u __pyerr_replaceexception air:~ dima$ nm /library/frameworks/python.framework/versions/2.7/lib/libpython2.7.dylib | grep -i replaceex 00000000000d03a0 t __pyerr_replaceexception 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -