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

LibUSB Rules issues #45

Open
MikePerreman opened this issue Apr 10, 2020 · 0 comments
Open

LibUSB Rules issues #45

MikePerreman opened this issue Apr 10, 2020 · 0 comments

Comments

@MikePerreman
Copy link

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]

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

1 participant