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

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

Open
nichu42 opened this issue Oct 3, 2024 · 2 comments
Open

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

nichu42 opened this issue Oct 3, 2024 · 2 comments

Comments

@nichu42
Copy link

nichu42 commented Oct 3, 2024

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 nichu42 changed the title Crash on start: Crash on start: The driver type 'USBPRINT' is not supported yet Oct 3, 2024
@daringer
Copy link
Collaborator

daringer commented Oct 8, 2024

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 🙄
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?

@nichu42
Copy link
Author

nichu42 commented Oct 8, 2024

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.

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