Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Error when trying to import petlib.pack #18

Open
NullByteSuiteDevs opened this issue Aug 30, 2018 · 1 comment
Open

Attribute Error when trying to import petlib.pack #18

NullByteSuiteDevs opened this issue Aug 30, 2018 · 1 comment

Comments

@NullByteSuiteDevs
Copy link

When attempting to import petlib.pack I get the following error:

Support not loading the library to build docs without compiling.
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/petlib-0.0.43-py2.7-linux-armv7l.egg/petlib/pack.py", line 32, in
from .ec import EcGroup, EcPt
File "/usr/local/lib/python2.7/dist-packages/petlib-0.0.43-py2.7-linux-armv7l.egg/petlib/ec.py", line 2, in
from .bn import Bn, force_Bn, get_ctx
File "/usr/local/lib/python2.7/dist-packages/petlib-0.0.43-py2.7-linux-armv7l.egg/petlib/bn.py", line 794, in
zero = Bn(0)
File "/usr/local/lib/python2.7/dist-packages/petlib-0.0.43-py2.7-linux-armv7l.egg/petlib/bn.py", line 222, in init
self.bn = _C.BN_new()
AttributeError: 'NoneType' object has no attribute 'BN_new'

I tried following the error put was left puzzled when it came down to /usr/local/lib/python2.7/dist-packages/petlib-0.0.43-py2.7-linux-armv7l.egg/petlib/

Can provide debug information as needed.

@gdanezis
Copy link
Owner

Thanks for this bug report -- I notice that you are on an ARM system, which I have never tested against. The most likely reason for the bug is that the C library, built though cffi, has not in fact been built (built errors?/Installation errors?) and thus the _C types are assigned to None as a backup.

Did you have any luck calling other functions from the library? (I suppose not?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants