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

Nitrokey Start not detected by GNUK toolset (no attribute 'cmd_verify') #2

Closed
RaymiiOrg opened this issue Aug 14, 2016 · 5 comments
Closed

Comments

@RaymiiOrg
Copy link

When trying to load a public key for firmware upgrades the following error occurs:

./tool/gnuk_put_binary_libusb.py -k 0 CB1522E7.bin
Traceback (most recent call last):
  File "./tool/gnuk_put_binary_libusb.py", line 112, in <module>
    main(fileid, is_update, data, passwd)
  File "./tool/gnuk_put_binary_libusb.py", line 52, in main
    gnuk.cmd_verify(BY_ADMIN, passwd)
AttributeError: 'NoneType' object has no attribute 'cmd_verify'

This is on Ubuntu 14.04. GnuPG recognizes the card.

@RaymiiOrg
Copy link
Author

I do have python pyusb 1.0.0 installed as that is in the repo's.

Reading here:

https://github.com/ggkitsas/gnuk/blob/master/NEWS#L55

** Tools and test suite now work with PyUSB 1.0, too.
It only worked with PyUSB 0.4.3, but it works with PyUSB 1.0 too.

Makes me think this is a version issue.

@RaymiiOrg
Copy link
Author

The gnuk source, tag release/1.2.1, also gives the same error. :(

@szszszsz
Copy link
Member

szszszsz commented Dec 2, 2016

Hi!
Error might show that GNUK tool does not see any supported device. Possibly one has to add vid/pid of NK Start to the tool's source.

@szszszsz
Copy link
Member

szszszsz commented Dec 2, 2016

Could you run the same using gnuk1.2-regnual-fix branch? I have added there Nitrokey Start's vid/pid.

@szszszsz
Copy link
Member

Closing as fixed. Please reopen if it still occurs.

@szszszsz szszszsz changed the title AttributeError: 'NoneType' object has no attribute 'cmd_verify' Nitrokey Start not detected by GNUK toolset (no attribute 'cmd_verify') Dec 29, 2016
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