nitrokey-app2 icon indicating copy to clipboard operation
nitrokey-app2 copied to clipboard

Crash on start: The driver type 'USBPRINT' is not supported yet

Open nichu42 opened this issue 1 year ago • 2 comments

I'm getting the following error since upgrading to the latest version:

Failed to execute script '_main_' due to unhandled exception: The driver type 'USBPRINT' is not supported yet

Traceback (most recent call last):
  File "nitrokeyapp\__main__.py", line 40, in <module>
  File "nitrokeyapp\__main__.py", line 34, in main
  File "nitrokeyapp\gui.py", line 42, in __init__
  File "usbmonitor\usbmonitor.py", line 35, in __init__
  File "usbmonitor\__platform_specific_detectors\_windows_usb_detector.py", line 30, in __init__
  File "usbmonitor\__platform_specific_detectors\_usb_detector_base.py", line 43, in __init__
  File "usbmonitor\__platform_specific_detectors\_windows_usb_detector.py", line 46, in get_available_devices
  File "usbmonitor\__platform_specific_detectors\_windows_usb_detector.py", line 83, in __finetune_incompatible_attributes
  File "usbmonitor\__platform_specific_detectors\_windows_usb_detector.py", line 123, in __get_driver_type_from_device_id
AssertionError: The driver type 'USBPRINT' is not supported yet, please create an issue in github

nichu42 avatar Oct 03 '24 09:10 nichu42

Oh wow, looks like the usbmonitor package doesn't like a specific usb-connected-device ?

Looks like this is a known issue

So for now it looks like the combination connected usb-printer + windows will lead to this issue :roll_eyes: The "workaround" is to disconnect the printer, but obviously this is not really a nice solution - we'll try to get in contact with the usbmonitor maintainer to see how we can solve this.

How did you install nitrokey-app2 ? Do you by any chance know how to modify the usbmonitor sources so we could extract some more details what happens?

daringer avatar Oct 08 '24 10:10 daringer

Yes, I have two Dymo label printers connected via USB. I can start Nitrokey App if they are disconnected upon start of the app. Installation was through downloaded MSI file.

Happy to send you more data. Just let me know what to do.

nichu42 avatar Oct 08 '24 11:10 nichu42

Hi, I have exactly the same problem on Windows with versions 2.3.3 no matter if installer or portable. A Dymo label printer is also connected here. Deactivating in the device manager is not enough, the device must be completely disconnected.

Is there anything new on this yet?

serial avatar Dec 12 '24 15:12 serial

Looks like this issue has been fixed upstream in usb-monitor v1.23. I’ve created a PR to update the dependency: https://github.com/Nitrokey/nitrokey-app2/pull/318.

robin-nitrokey avatar Dec 12 '24 15:12 robin-nitrokey

Fixed in version 2.3.5.

mmerklinger avatar Aug 20 '25 09:08 mmerklinger