Skip to content

The device does not support the specified langid #6

@mobilinkd

Description

@mobilinkd
Traceback (most recent call last):
  File "./dfuse-tool.py", line 147, in <module>
    flash(args)
  File "./dfuse-tool.py", line 63, in flash
    dfu = find_device(args)
  File "./dfuse-tool.py", line 14, in find_device
    for _,alt in dfu.alternates():
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 28, in alternates
    return [(self.get_string(intf.iInterface), intf) for intf in self.cfg]
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 28, in <listcomp>
    return [(self.get_string(intf.iInterface), intf) for intf in self.cfg]
  File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 73, in get_string
    return usb.util.get_string(self.dev, 256, index)
  File "/usr/lib/python3.5/site-packages/usb/util.py", line 318, in get_string
    raise ValueError("The device does not support the specified langid")
ValueError: The device does not support the specified langid

This is because usb.util.get_string() fails. And this appears to be failing because the args are wrong.

This occurs on Fedora 24 with:
python3-pyusb-1.0.0-1.fc24.noarch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions