Skip to content

Create support for USBPRINT driver type or at least allow to ignore it #6

@jokubas11

Description

@jokubas11

I have a USB printer connected and I cannot initialize the USBMonitor class, even if I device to use filter_devices argument, which would exclude that particular printer, so theoretically I am unable to even use this package whenever the printer is connected to PC, unless I modify source code in the package to ignore any USBPRINT devices.

  File "C:\projects\label_printer\env\lib\site-packages\usbmonitor\__platform_specific_detectors\_windows_usb_detector.py", line 126, in __get_driver_type_from_device_id
    assert driver_type in _WINDOWS_REGEX_ATTRIBUTES_BY_DRIVER, f"The driver type '{driver_type}' is not supported " \
AssertionError: The driver type 'USBPRINT' is not supported yet, please create an issue in github

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions