Bug 2569003 - nitropy cannot connect to Nitrokey NK3xN bootloader due to outdated udev rules
Summary: nitropy cannot connect to Nitrokey NK3xN bootloader due to outdated udev rules
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pynitrokey
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Daniel Milnes
QA Contact:
URL:
Whiteboard:
Depends On: 2568563 2577489
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-09 09:19 UTC by robin+redhat
Modified: 2026-11-19 22:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description robin+redhat 2026-11-09 09:19:45 UTC
pynitrokey uses the hidapi library to communicate with the NK3xN bootloader. The library supports two modes, hidraw and libusb. pynitrokey pins hidapi to a version using hidraw. Fedora ships a version using libusb and ignores the pin.

The old Nitrokey udev rules shipped with libnitrokey only supported hidraw. The rules have been moved to a [separate repository][1] in 2024 and received support for the libusb mode in 2025 with [v1.1.0][2]. Fedora still ships the old udev rules from libnitrokey.

[1]: https://github.com/Nitrokey/nitrokey-udev-rules
[2]: https://github.com/Nitrokey/nitrokey-udev-rules/releases/tag/v1.1.0

The combination of the two means that users installing pynitrokey via Fedora are not able to communicate with the NK3xN bootloader. I would recommend to replace the udev rules from libnitrokey with the new udev rules from nitrokey-udev-rules in a separate package. See also [this upstream issue][3].

[3]: https://github.com/Nitrokey/pynitrokey/issues/806

Reproducible: Always

Steps to Reproduce:
1. Connect NK3xN device.
2. Reboot to bootloader with `nitropy nk3 reboot --bootloader`.
3. Try to connect to the device, e. g. with `nitropy nk3 list` or `nitropy nk3 update`.
Actual Results:
```
nitrokey.trussed._bootloader.lpc55_upload.exceptions.SPSDKConnectionError: SPSDK: Unable to open device ' (0x20A0, 0x42DD)path=b'3-6:1.0''
```

Expected Results:
Device is used correctly.

Comment 1 Daniel Milnes 2026-11-19 21:24:18 UTC
Agreed with the plan to move the udev rules into their own RPM, I'll whip up a ticket for that now


Note You need to log in before you can comment on or make changes to this bug.