solidwebpush icon indicating copy to clipboard operation
solidwebpush copied to clipboard

Error AttributeError: dlsym(0x7faacb42bc20, ECDH_OpenSSL): symbol not found

Open avanish-appdirect opened this issue 3 years ago • 0 comments

Environment macOS : 10.15.7 python: 3.9 pip: 21.1.3

I get following error when I'm trying to from solidwebpush import Pusher.

Error

Python 3.9.6 (default, Jun 29 2021, 06:20:32) 
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from solidwebpush import Pusher
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/test/Desktop/test/test-web-push-env/lib/python3.9/site-packages/solidwebpush/__init__.py", line 20, in <module>
    import http_ece
  File "/Users/test/Desktop/test/test-web-push-env/lib/python3.9/site-packages/http_ece/__init__.py", line 12, in <module>
    from pyelliptic import ecc
  File "/Users/test/Desktop/test/test-web-push-env/lib/python3.9/site-packages/pyelliptic/__init__.py", line 43, in <module>
    from .openssl import OpenSSL
  File "/Users/test/Desktop/test/test-web-push-env/lib/python3.9/site-packages/pyelliptic/openssl.py", line 528, in <module>
    OpenSSL = _OpenSSL(libname)
  File "/Users/test/Desktop/test/test-web-push-env/lib/python3.9/site-packages/pyelliptic/openssl.py", line 180, in __init__
    self.ECDH_OpenSSL = self._lib.ECDH_OpenSSL
  File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x7faacb42bc20, ECDH_OpenSSL): symbol not found

Pip Freeze:

certifi==2021.5.30
cffi==1.14.6
chardet==3.0.4
cryptography==3.4.7
ecdsa==0.13
future==0.18.2
http-ece==0.7.0
idna==2.7
py-vapid==0.7.1
pycparser==2.20
pycrypto==2.6.1
pyelliptic==1.5.7
python-jose==0.6.1
requests==2.20.0
six==1.16.0
solidwebpush==1.2.3
urllib3==1.24.3

Also it looks like pyelliptic is deprecated so why are we using this lib?

Can anyone please help.

avanish-appdirect avatar Jul 21 '21 12:07 avanish-appdirect