我试图使用此package pywebpush,但我收到此错误:
AttributeError: dlsym(0x7fe512579830, EVP_CIPHER_CTX_reset): symbol not found
这是整个追溯:
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
我该如何解决这个问题?
答案 0 :(得分:5)
似乎是pyelliptic
1.5.8 has a bug。您可以通过降级到1.5.7来修复它:
<ul>
<li>
<label for="toggle1">
<div class="cell"><span><a>July 7th</a></span></div>
<div class="cell">
<span>Nairn County</span>
<span class="h-score">0</span>
<span>Inverness Caledonian Thistle</span>
<span class="a-score">3</span>
</div>
<div class="cell"><span>Friendly</span></div>
</label>
<input id="toggle1" type="checkbox">
<div class="fixture-info">
<div class="kickoff">Kickoff: <span>1930</span></div>
<div class="match-sponsor">Match Sponsor: ....</div>
</div>
<li>
<li>
<label for="toggle2">
<div class="cell"><span><a>July 7th</a></span></div>
<div class="cell">
<span>Nairn County</span>
<span class="h-score">0</span>
<span>Inverness Caledonian Thistle</span>
<span class="a-score">3</span>
</div>
<div class="cell"><span>Friendly</span></div>
</label>
<input id="toggle2" type="checkbox">
<div class="fixture-info">
<div class="kickoff">Kickoff: <span>1930</span></div>
<div class="match-sponsor">Match Sponsor: ....</div>
</div>
<li>
</ul>
pyelliptic
is actually deprecated,如果可以提供帮助,请避免使用它。尝试使用pip install pyelliptic==1.5.7
卸载它,然后通过运行pip uninstall pyelliptic
来查看是否破坏了任何依赖项。