Skip to content

unhashable type: 'Device' #257

@forestomir

Description

@forestomir

while executing "ftdi_urls.py" i get following error:

Traceback (most recent call last):
File "/home/bob/.local/bin/ftdi_urls.py", line 74, in
main()
File "/home/bob/.local/bin/ftdi_urls.py", line 62, in main
Ftdi.show_devices()
File "/home/bob/.local/lib/python3.8/site-packages/pyftdi/ftdi.py", line 387, in show_devices
devdescs = UsbTools.list_devices(url or 'ftdi:///?',
File "/home/bob/.local/lib/python3.8/site-packages/pyftdi/usbtools.py", line 274, in list_devices
candidates, _ = cls.enumerate_candidates(urlparts, vdict, pdict,
File "/home/bob/.local/lib/python3.8/site-packages/pyftdi/usbtools.py", line 417, in enumerate_candidates
devices = cls.find_all(vps)
File "/home/bob/.local/lib/python3.8/site-packages/pyftdi/usbtools.py", line 95, in find_all
devs.update(UsbTools._find_devices(vid, pid, nocache))
File "/home/bob/.local/lib/python3.8/site-packages/pyftdi/usbtools.py", line 620, in _find_devices
devs.add(device)
TypeError: unhashable type: 'Device'

my setup is:
ubuntu 20.04
Python 3.8.10 (default on ubuntu)
pyftdi 0.53.1 (installed by pip)
pyusb 1.2.0 (installed by pip to fulfill dependencies)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions