Skip to content

LibUSB Rules issues #45

@MikePerreman

Description

@MikePerreman

the given rules do not work for ubuntu 18.04/
changing 60-hantek-6022-usb.rules to:
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="6022", MODE="660", GROUP="plugdev"
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b5", ATTRS{idProduct}=="6022", MODE="660", GROUP="plugdev"

allows python3 to run without sudo. Without this change, you get:

Traceback (most recent call last): File "/media/mike/Storage/Programming/vscode python/python test/test.py", line 21, in <module> scope.open_handle() File "/usr/local/lib/python3.6/dist-packages/Python_Hantek_6022BE_Wrapper-0.0.2-py3.6.egg/PyHT6022/LibUsbScope.py", line 97, in open_handle self.device_handle = self.device.open() File "/usr/local/lib/python3.6/dist-packages/libusb1-1.7.1-py3.6.egg/usb1/__init__.py", line 2168, in open File "/usr/local/lib/python3.6/dist-packages/libusb1-1.7.1-py3.6.egg/usb1/__init__.py", line 133, in mayRaiseUSBError File "/usr/local/lib/python3.6/dist-packages/libusb1-1.7.1-py3.6.egg/usb1/__init__.py", line 125, in raiseUSBError usb1.USBErrorAccess: LIBUSB_ERROR_ACCESS [-3]

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