Skip to content

Instantly share code, notes, and snippets.

@lukego
Created November 4, 2020 10:59
Show Gist options
  • Save lukego/7fa2e1416f5591146e45aab3adfde9a3 to your computer and use it in GitHub Desktop.
Save lukego/7fa2e1416f5591146e45aab3adfde9a3 to your computer and use it in GitHub Desktop.
root@d15d15aa00fb:/# lsusb
Bus 004 Device 001: ID 1d6b:0003
Bus 003 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 003: ID 06cb:00bd
Bus 001 Device 002: ID 13d3:56ba Azurewave Integrated Camera
Bus 001 Device 014: ID 20b7:9db1 whitequark research Glasgow Debug Tool
Bus 001 Device 004: ID 8087:0aaa
Bus 001 Device 001: ID 1d6b:0002
root@d15d15aa00fb:/# glasgow run selftest
Traceback (most recent call last):
File "/usr/bin/glasgow", line 11, in <module>
load_entry_point('glasgow', 'console_scripts', 'glasgow')()
File "/glasgow/software/glasgow/cli.py", line 828, in main
exit(loop.run_until_complete(_main()))
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/glasgow/software/glasgow/cli.py", line 462, in _main
device = GlasgowHardwareDevice(args.serial, firmware_filename)
File "/glasgow/software/glasgow/device/hardware.py", line 125, in __init__
handles = self._enumerate_devices(usb_context, firmware_filename, _factory_rev)
File "/glasgow/software/glasgow/device/hardware.py", line 102, in _enumerate_devices
handle = device.open()
File "/usr/lib/python3/dist-packages/usb1/__init__.py", line 2159, in open
mayRaiseUSBError(libusb1.libusb_open(self.device_p, byref(handle)))
File "/usr/lib/python3/dist-packages/usb1/__init__.py", line 133, in mayRaiseUSBError
__raiseUSBError(value)
File "/usr/lib/python3/dist-packages/usb1/__init__.py", line 125, in raiseUSBError
raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorNoDevice: LIBUSB_ERROR_NO_DEVICE [-4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment