Open sosthene-nitrokey opened 3 months ago
updated PR desc
Tested on macOS 14 (ARM64). Listing and reading the version works. Then I attempted an update of the NK3. This fails, leaving the NK3 in bootloader mode. Running the update again returns the same error. Removing the forced two-step update process has the same outcome.
ah ok - the error on mac is the same as on linux:
230 WARNING pynitrokey.cli An unhandled exception occurred
Traceback (most recent call last):
File "/Users/testuser/Projects/pynitrokey/venv/lib/python3.9/site-packages/pynitrokey/trussed/bootloader/lpc55_upload/utils/interfaces/device/usb_device.py", line 78, in open
self._device = hid.device.open_path(self.path)
TypeError: descriptor 'open_path' for 'hid.device' objects doesn't apply to a 'bytes' object
quite obviously it is not using hid.device
correctly....
works with lpc on linux for me now, @mmerklinger please check
Needs testing on windows and macos edit: meissner hijacking this
hid
stuff I don't understand @daringer - fixed)