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

Unable to use cli - The device has no langid #32

Open
kalenmike opened this issue Sep 13, 2023 · 3 comments
Open

Unable to use cli - The device has no langid #32

kalenmike opened this issue Sep 13, 2023 · 3 comments

Comments

@kalenmike
Copy link

kalenmike commented Sep 13, 2023

I am unable to get the cli to start.

System info:

Ubuntu 22.04.3 LTS
i3 4.22
Bus 001 Device 007: ID 046d:c900 Logitech, Inc. Litra Glow

Steps to reproduce:

pip install litra-driver

sudo tee /etc/udev/rules.d/82-litra-glow.rules <<< 'SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c900",MODE="0666"'

lc --help
Traceback (most recent call last):
  File "/home/ace/.local/bin/lc", line 5, in <module>
    from llgd.cli.cli import main
  File "/home/ace/.local/lib/python3.10/site-packages/llgd/cli/cli.py", line 8, in <module>
    from llgd.lib.llgd_lib import light_on, light_off, set_brightness, set_temperature
  File "/home/ace/.local/lib/python3.10/site-packages/llgd/lib/llgd_lib.py", line 153, in <module>
    find_devices()
  File "/home/ace/.local/lib/python3.10/site-packages/llgd/lib/llgd_lib.py", line 41, in find_devices
    logging.info('Found Device "%s"', product_device.product)
  File "/home/ace/.local/lib/python3.10/site-packages/usb/core.py", line 875, in product
    self._product = util.get_string(self, self.iProduct)
  File "/home/ace/.local/lib/python3.10/site-packages/usb/util.py", line 313, in get_string
    raise ValueError("The device has no langid"
ValueError: The device has no langid (permission issue, no string descriptors supported or device error)
@gabeguz
Copy link

gabeguz commented Oct 11, 2023

I needed to reboot before it worked for me, I was getting the same error.

@sethforprivacy
Copy link

After installing the udev rules you can usually just unplug/re-plug the device into your computer to activate them -- that's what worked for me as it does with most udev rule issues.

@kharyam
Copy link
Owner

kharyam commented Mar 7, 2024

Just a heads up that I've released a go version of this application , a single native executable for the cli and ui. Let me know if you can give it a try!

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

4 participants