logitech-m720-config icon indicating copy to clipboard operation
logitech-m720-config copied to clipboard

sctipt fails to run

Open Spudd86 opened this issue 2 years ago • 4 comments

Starting the script after installing it, it immediately crashes with the following output

Traceback (most recent call last):
  File "env/bin/m720-config", line 11, in <module>
    load_entry_point('m720-config', 'console_scripts', 'm720-config')()
  File "/home/thomasjones/packages/logitech-m720-config/m720_config/__init__.py", line 149, in main
    buttons = SpecialKeysMseButtons ()
  File "/home/thomasjones/packages/logitech-m720-config/m720_config/__init__.py", line 25, in __init__
    device_info = next (r for r in receivers () if r.product_id.lower() == "c52b")
StopIteration

I tried installing it as in the readme, and the uninstalling and doing it again with Ubuntu instructions and in a venv, same results

Spudd86 avatar May 01 '22 03:05 Spudd86

Looks like the mouse is not connected or not a M720 Triathlon. I added a report of currently connected devices to the beginning of the script, so you can check.

fin-ger avatar May 01 '22 11:05 fin-ger

I had it connected over bluetooth, not the dongle. Is that why?

Spudd86 avatar May 02 '22 01:05 Spudd86

I seem to be having the same problem. I'm also using Bluetooth to connect rather than the Unifying dongle.

### CURRENTLY CONNECTED DEVICES ###
     path     vendor_id product_id serial release manufacturer product interface driver               bus_id isDevice
Report Descriptor not processed for BID 0018 VID 000004F3 PID 000030FD: Expecting 4 usages but got 2

Report Descriptor not processed for BID 0018 VID 000004F3 PID 000030FD: Expecting 4 usages but got 2
Traceback (most recent call last):
  File "/home/tmt/.local/bin/m720-config", line 8, in <module>
    sys.exit(main())
  File "/path/to/logitech-m720-config/m720_config/__init__.py", line 156, in main
    buttons = SpecialKeysMseButtons ()
  File "/path/to/logitech-m720-config/m720_config/__init__.py", line 33, in __init__
    device_info = next (r for r in receivers () if r.product_id.lower() == "c52b")
StopIteration

tinnamchoi avatar Jan 17 '23 16:01 tinnamchoi

我通过蓝牙连接它,而不是适配器。是因为这个吗?

yes, you have to change it to usb

lingium avatar Apr 06 '24 11:04 lingium