-
Notifications
You must be signed in to change notification settings - Fork 41
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
error while running example_linux_continous_read.py #34
Comments
I think you need to install libusb, e.g. sudo apt install libusb-1.0-0-dev |
well, I have installed it, but it doesn't make any difference; the error comes only, when closing the handly, so I just moved the command to the end of the script. |
Hello, python-libusb1 dev here. @rpcope1:
This is a bug in python-libusb1: while |
I'm getting the same error. I am running on Ubuntu, I tried with system python +python-libusb from official sources, pypi and github, and anaconda with python-libusb1 1.6.6. Uploading firmware seems to work. OpenHantek also works. |
Hallo,
thanks for sharing your API.
I get an error, when running example_linux_continous_read.py
python example_linux_continous_read.py
Clearing FIFO and starting data transfer...
Stopping new transfers.
Snooze 1
Closing handle
Traceback (most recent call last):
File "example_linux_continous_read.py", line 68, in
scope.close_handle()
File "/usr/local/lib/python2.7/dist-packages/Python_Hantek_6022BE_Wrapper-0.0.2-py2.7.egg/PyHT6022/LibUsbScope.py", line 116, in close_handle
self.device_handle.close()
File "build/bdist.linux-x86_64/egg/usb1.py", line 1113, in close
File "build/bdist.linux-x86_64/egg/usb1.py", line 737, in cancel
libusb1.USBError: LIBUSB_ERROR_NOT_FOUND [-5]
Exception usb1.USBErrorNotFound: USBErrorNotFound() in <bound method Oscilloscope.del of <PyHT6022.LibUsbScope.Oscilloscope object at 0x7f616c3bc2d0>> ignored
Exception libusb1.USBError: USBError() in <bound method USBDeviceHandle.del of <usb1.USBDeviceHandle object at 0x7f6169323190>> ignored
So the device can not be accessed, from what I understand.. Any ideas how to solve the problem?
The text was updated successfully, but these errors were encountered: