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

samples/zephyr make error #253

Closed
Jeepgoing opened this issue Mar 21, 2018 · 4 comments
Closed

samples/zephyr make error #253

Jeepgoing opened this issue Mar 21, 2018 · 4 comments

Comments

@Jeepgoing
Copy link

hello,when i make zephyr hello-world use "make hello1",an error appeared,who can help me:

Traceback (most recent call last):
File "../../scripts/imgtool.py", line 145, in
args()
File "../../scripts/imgtool.py", line 142, in args
subcmdsargs.subcmd
File "../../scripts/imgtool.py", line 85, in do_sign
img.sign(key)
File "/home/liang/work/shared/mcuboot-1.1.0/scripts/imgtool/image.py", line 128, in sign
sig = key.sign(bytes(self.payload))
File "/home/liang/work/shared/mcuboot-1.1.0/scripts/imgtool/keys/rsa.py", line 92, in sign
return self.key.sign(
AttributeError: '_RSAPrivateKey' object has no attribute 'sign'

@Jeepgoing
Copy link
Author

i have installed scripts/requirements.txt with sudo and without sudo

@Jeepgoing
Copy link
Author

i have uninstall cryptography,and reinstall cryptography,this problem was solved.
i think when i first install cryptography,maybe i used sudo.

@OPetryshyn
Copy link

Actually cryptography package was not installed.

pip3 install cryptography

No "sudo" required.

@d3zd3z
Copy link
Member

d3zd3z commented Jul 31, 2018

Generally, should be

pip3 install -u cryptography

Depending on your distribution. In general, you should never use sudo on a pip command.

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