solaar: TypeError: '<' not supported between instances of 'str' and 'int

Bug #1992589 reported by luigi.mantellini@gmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solaar
Fix Released
Unknown
solaar (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

A syntax error is shown in Solaar sources:

11:38:26 ✘-1 comio@smo-mantel:/tmp $ solaar show
Solaar version 1.1.5

Unifying Receiver
  Device path : /dev/hidraw3
  USB id : 046d:C52B
  Serial : 538E9E94
    Firmware : 12.10.B0032
    Bootloader : 02.14
    Other : AA.AA
  Has 2 paired device(s) out of a maximum of 6.
  Notifications: wireless, software present (0x000900)
  Device activity counters: 2=213

  1: Wireless Touch Keyboard K400
     Device path : /dev/hidraw4
     WPID : 4024
     Codename : K400
     Kind : keyboard
     Protocol : HID++ 2.0
     Polling rate : 8 ms (125Hz)
     Serial number: AF35CB44
     The power switch is located on the edge of top right corner.
     Battery: unknown (device is offline).

  2: MX Master 3 Wireless Mouse
     Device path : /dev/hidraw5
     WPID : 4082
     Codename : MX Master 3
     Kind : mouse
     Protocol : HID++ 4.5
     Polling rate : 8 ms (125Hz)
     Serial number: 78D9E28A
     Model ID: B02340820000
     Unit ID: 78D9E28A
        Bootloader: BOT 95.00.B0013
          Firmware: MPM 19.01.B0015
             Other:
     The power switch is located on the base.
     Supports 34 HID++ 2.0 features:
         0: ROOT {0000} V0
         1: FEATURE SET {0001} V0
         2: DEVICE FW VERSION {0003} V3
            Firmware: Bootloader BOT 95.00.B0013 0000D8279515
            Firmware: Firmware MPM 19.01.B0015 40826A9CA89D
            Firmware: Other
            Unit ID: 78D9E28A Model ID: B02340820000 Transport IDs: {'btleid': 'B023', 'wpid': '4082'}
         3: DEVICE NAME {0005} V0
            Name: Wireless Mouse MX Master 3
            Kind: mouse
         4: WIRELESS DEVICE STATUS {1D4B} V0
         5: RESET {0020} V0
         6: CRYPTO ID {0021} V1
         7: DEVICE FRIENDLY NAME {0007} V0
            Friendly Name: MX Master 3
         8: BATTERY STATUS {1000} V1
            Battery: 50%, discharging, next level 20%.
         9: REPROG CONTROLS V4 {1B04} V4
            Azioni tasto/pulsante (saved): {Left Button:Left Click, Right Button:Right Click, Middle Button:Mouse Middle Button, Back Button:Mouse Back Button, Forward Button:Mouse Forward Button, Mouse Gesture Button:Gesture Button Navigation, Smart Shift:Smart Shift}
            Azioni tasto/pulsante : {Left Button:Left Click, Right Button:Right Click, Middle Button:Mouse Middle Button, Back Button:Mouse Back Button, Forward Button:Mouse Forward Button, Mouse Gesture Button:Gesture Button Navigation, Smart Shift:Smart Shift}
solaar: error: Traceback (most recent call last):
  File "/usr/share/solaar/lib/solaar/cli/__init__.py", line 210, in run
    m.run(c, args, _find_receiver, _find_device)
  File "/usr/share/solaar/lib/solaar/cli/show.py", line 293, in run
    _print_device(dev)
  File "/usr/share/solaar/lib/solaar/cli/show.py", line 232, in _print_device
    v = setting.val_to_string(setting._device.persister.get(setting.name))
  File "/usr/share/solaar/lib/logitech_receiver/settings.py", line 237, in val_to_string
    return self._validator.to_string(value)
  File "/usr/share/solaar/lib/logitech_receiver/settings.py", line 1085, in to_string
    return '{' + ', '.join([element_to_string(k, value[k]) for k in sorted(value)]) + '}'

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: solaar 1.1.5+dfsg-1
ProcVersionSignature: Ubuntu 5.19.0-19.19-generic 5.19.7
Uname: Linux 5.19.0-19-generic x86_64
ApportVersion: 2.23.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Wed Oct 12 11:40:14 2022
InstallationDate: Installed on 2019-09-26 (1111 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190923)
PackageArchitecture: all
SourcePackage: solaar
UpgradeStatus: Upgraded to kinetic on 2022-10-01 (10 days ago)

Revision history for this message
luigi.mantellini@gmail.com (comio) wrote :
Changed in solaar-unifying:
status: Unknown → New
Revision history for this message
Stephen Kitt (steve-sk2) wrote :

Quoting upstream:

> To fix the problem without these patches edit ~/.config/solaar/config.yaml file to remove string keys in the divert-keys setting. Alternatively remove the entire divert keys setting. Alternatively remove the entire file. In the first two cases the user may have to redo the divert-keys setting. In the last case the user will have to redo all their settings.

I’ve updated the package in Debian but I’m not familiar with the process to get the fixes into Ubuntu 22.10.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package solaar - 1.1.5+dfsg-2

---------------
solaar (1.1.5+dfsg-2) unstable; urgency=medium

  * Apply upstream patches to fix conversion errors and remove bad config
    entries. LP: #1992589.

 -- Stephen Kitt <email address hidden> Thu, 13 Oct 2022 13:38:30 +0200

Changed in solaar (Ubuntu):
status: New → Fix Released
Changed in solaar-unifying:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.