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

ModuleNotFoundError: No module named 'cose.curves' #9

Open
JsBergbau opened this issue Jun 24, 2021 · 2 comments
Open

ModuleNotFoundError: No module named 'cose.curves' #9

JsBergbau opened this issue Jun 24, 2021 · 2 comments

Comments

@JsBergbau
Copy link

Trying to execute echo "{'A': 1234}" | python3 hc1_sign.py | python3 hc1_verify.py
this error occurs

Traceback (most recent call last):
  File "/home/pi/ehn-sign-verify-python-trivial/hc1_sign.py", line 13, in <module>
    from cose.curves import P256
ModuleNotFoundError: No module named 'cose.curves'
Traceback (most recent call last):
  File "/home/pi/ehn-sign-verify-python-trivial/hc1_verify.py", line 16, in <module>
    from cose.curves import P256
ModuleNotFoundError: No module named 'cose.curves'

Of course module is installed via pip3 install cose
What is wrong here?

@nofaceinbook
Copy link

Hi @JsBergbau, I run into the same issue. Seems the cose library was reorganized with new version. So with new cose library you should include P256 like this:
from cose.keys.curves import P256

@jschlyter
Copy link

jschlyter commented Jun 24, 2021

See also https://github.com/ehn-dcc-development/python-hcert for a ready to use library. Not yet on PyPi, but I'm happy to publish it if requested.

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

3 participants