nucypher / pyUmbral

NuCypher's reference implementation of Umbral (threshold proxy re-encryption) using OpenSSL and Cryptography.io
https://pyumbral.readthedocs.io
GNU General Public License v3.0
285 stars 71 forks source link

AttributeError: module 'lib' has no attribute 'BN_clear_free' #244

Closed dvalencia-sd closed 5 years ago

dvalencia-sd commented 5 years ago

I'm trying to run the test code and here's what I got

 File "test.py", line 1, in <module>
    from umbral import pre, keys, signing
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/pre.py", line 23, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/config.py", line 21, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/curve.py", line 131, in <module>
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/curve.py", line 74, in from_name
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/curve.py", line 53, in __init__
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/openssl.py", line 57, in _get_ec_order_by_group
  File "/root/.local/lib/python3.6/site-packages/umbral-0.1.3a1-py3.6.egg/umbral/openssl.py", line 33, in _get_new_BN
AttributeError: module 'lib' has no attribute 'BN_clear_free'

Any thoughts?

tuxxy commented 5 years ago

Hmmm.... this is pretty odd.

What version of cryptography.io are you using here? What version of OpenSSL is cryptography.io using? Maybe there is a version conflict on your system? Either way, I don't believe this to be a pyUmbral issue.