Skip to content

jupiter-controller-update error #1441

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

Open
DocMAX opened this issue Mar 23, 2024 · 4 comments
Open

jupiter-controller-update error #1441

DocMAX opened this issue Mar 23, 2024 · 4 comments

Comments

@DocMAX
Copy link

DocMAX commented Mar 23, 2024

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

@bertogg
Copy link

bertogg commented Apr 5, 2024

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

@DocMAX
Copy link
Author

DocMAX commented Apr 5, 2024

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

@DocMAX DocMAX closed this as completed Apr 5, 2024
@RodoMa92
Copy link

RodoMa92 commented May 12, 2024

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 ublue-os/bazzite#1108 and apmorton/pyhidapi#60. Downgrading to 1.0.5 fixes the problem entirely.

@DocMAX DocMAX reopened this May 12, 2024
@RyuzakiKK
Copy link

This should be fixed in SteamOS 3.7.

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

No branches or pull requests

5 participants