Skip to content
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

The device does not support the specified langid #6

Open
mobilinkd opened this issue Mar 25, 2017 · 3 comments
Open

The device does not support the specified langid #6

mobilinkd opened this issue Mar 25, 2017 · 3 comments

Comments

@mobilinkd
Copy link

mobilinkd commented Mar 25, 2017

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

@mobilinkd
Copy link
Author

walac/pyusb@dac7893#diff-23d5219b9f9598e15347eacae1ec161e changed the interface to this call in 2013.

@ateneolab
Copy link

Hi, what if that configuration already exists but the error message keeps showing?
Thank you.

@pms67
Copy link

pms67 commented Aug 28, 2020

I had the same error message. To fix this you need to go into 'dfuse/DfuDevice.py' and change line 73 from:

return usb.util.get_string(self.dev, 256, index)

to

return usb.util.get_string(self.dev, index)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants