-
Notifications
You must be signed in to change notification settings - Fork 247
ftdi_urls.py crashes with pyusb v1.2.0 #256
Copy link
Copy link
Closed
pyusb/pyusb
#376Labels
bugConfirmed/reproduced bugConfirmed/reproduced bug
Description
Good evening,
With pyusb v1.2.0, the script ftdi_urls.py crashes with the following error:
Traceback (most recent call last):
File "[...]/pyftdi/pyftdi/bin/ftdi_urls.py", line 74, in <module>
main()
File "[...]/pyftdi/pyftdi/bin/ftdi_urls.py", line 62, in main
Ftdi.show_devices()
File "[...]/.venv/lib/python3.9/site-packages/pyftdi/ftdi.py", line 387, in show_devices
devdescs = UsbTools.list_devices(url or 'ftdi:///?',
File "[...]/.venv/lib/python3.9/site-packages/pyftdi/usbtools.py", line 274, in list_devices
candidates, _ = cls.enumerate_candidates(urlparts, vdict, pdict,
File "[...]/.venv/lib/python3.9/site-packages/pyftdi/usbtools.py", line 417, in enumerate_candidates
devices = cls.find_all(vps)
File "[...]/.venv/lib/python3.9/site-packages/pyftdi/usbtools.py", line 95, in find_all
devs.update(UsbTools._find_devices(vid, pid, nocache))
File "[...]/.venv/lib/python3.9/site-packages/pyftdi/usbtools.py", line 615, in _find_devices
devs.add(device)
TypeError: unhashable type: 'Device'
With pyusb v1.1.1, no crash occurs.
Regards,
obpt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugConfirmed/reproduced bugConfirmed/reproduced bug