AttributeError: dlsym (0x7fe512579830, EVP_CIPHER_CTX_reset): Symbol not found

I am trying to use this pywebpush package but I am getting this error:

AttributeError: dlsym(0x7fe512579830, EVP_CIPHER_CTX_reset): symbol not found

      

This is the whole trace:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/pywebpush/__init__.py", line 15, in <module>
    import http_ece
  File "/usr/local/lib/python2.7/site-packages/http_ece/__init__.py", line 12, in <module>
    from pyelliptic import ecc
  File "/usr/local/lib/python2.7/site-packages/pyelliptic/__init__.py", line 43, in <module>
    from .openssl import OpenSSL
  File "/usr/local/lib/python2.7/site-packages/pyelliptic/openssl.py", line 310, in <module>
    OpenSSL = _OpenSSL(libname)
  File "/usr/local/lib/python2.7/site-packages/pyelliptic/openssl.py", line 144, in __init__
    self.EVP_CIPHER_CTX_reset = self._lib.EVP_CIPHER_CTX_reset
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x7fe512579830, EVP_CIPHER_CTX_reset): symbol not found

      

How can I fix this?

+3


source to share


1 answer


pyelliptic

1.5.8
seems to have a bug . You might be able to fix this by downgrading to 1.5.7:

pip install pyelliptic==1.5.7

      



pyelliptic

not actually recommended
, so avoid it if you can help it. Try to remove it with pip uninstall pyelliptic

, and then see if any dependencies break by running pip check

.

+4


source







All Articles