我将现有的代码库从MacOS迁移到Ubuntu 18.04。设置环境并启动服务器时,我遇到了一个特定模块的问题:pyelliptic
。
File "/SOME_PATH/anypush/__init__.py", line 10, in <module>
import pyelliptic
File "/SOME_PATH/venv/local/lib/python2.7/site-packages/pyelliptic/__init__.py", line 43, in <module>
from .openssl import OpenSSL
File "/SOME_PATH/venv/local/lib/python2.7/site-packages/pyelliptic/openssl.py", line 528, in <module>
OpenSSL = _OpenSSL(libname)
File "/SOME_PATH/venv/local/lib/python2.7/site-packages/pyelliptic/openssl.py", line 180, in __init__
self.ECDH_OpenSSL = self._lib.ECDH_OpenSSL
File "/usr/lib/python2.7/ctypes/__init__.py", line 379, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 384, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: ECDH_OpenSSL
我注意到这正在访问系统文件libcrypto.so.1.1
。另外,不再支持pyelliptic
。有没有解决此问题的方法?