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

Closed
nichu42 opened this issue Oct 3, 2024 · 4 comments · Fixed by #318
Closed

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

nichu42 opened this issue Oct 3, 2024 · 4 comments · Fixed by #318

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.

@serial
Copy link

serial commented Dec 12, 2024

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?

robin-nitrokey added a commit that referenced this issue Dec 12, 2024
This patch updates the locked usb-monitor version to v1.23.  This
release should include a fix for the crash on Windows if a printer is
connected.

See also:
- Eric-Canas/USBMonitor#6
- Eric-Canas/USBMonitor@f7ea799
Fixes: #288
@robin-nitrokey
Copy link
Member

Looks like this issue has been fixed upstream in usb-monitor v1.23. I’ve created a PR to update the dependency: #318.

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

Successfully merging a pull request may close this issue.

4 participants