SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

jupiter-controller-update error

Open DocMAX opened this issue 1 year ago • 3 comments

I'm not running SteamOS but Arch Linux. Why do i get an error here? Also Steam does not detect SteamDeck Controller anymore. Any ideas?

Kernel: Linux steamdeck 6.8.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 16 Mar 2024 17:15:35 +0000 x86_64 GNU/Linux

root@steamdeck: ~ # jupiter-controller-update
Traceback (most recent call last):
  File "/usr/share/jupiter_controller_fw_updater/d21bootloader16.py", line 1220, in <module>
    cli()
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/jupiter_controller_fw_updater/d21bootloader16.py", line 1074, in get_devices_json
    print(json.dumps(devs))
          ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode
    return _iterencode(o, 0)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/encoder.py", line 180, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type BusType is not JSON serializable
!! Failed to enumerate devices

DocMAX avatar Mar 23 '24 22:03 DocMAX

Do you mean that you installed plain Arch Linux instead of SteamOS in the Steam Deck? This is the SteamOS issue tracker :-)

bertogg avatar Apr 05 '24 13:04 bertogg

Yes plain Arch Linux. But why shouldn't this be supported? Anyway i updated the controllers wie SteamOS from external disk. Closed.

DocMAX avatar Apr 05 '24 14:04 DocMAX

Not sure why you closed it, since this will come back to bite Valve once they'll update the python base. I've tracked down the source of the error, it's an hid package regression introduced on 1.0.6; see https://github.com/ublue-os/bazzite/issues/1108 and https://github.com/apmorton/pyhidapi/issues/60. Downgrading to 1.0.5 fixes the problem entirely.

RodoMa92 avatar May 12 '24 12:05 RodoMa92