Code Monkey home page Code Monkey logo

Comments (7)

RodoMa92 avatar RodoMa92 commented on June 7, 2024

Found the source of the regression, hid 1.0.6 introduces this bug, see apmorton/pyhidapi#60. Reported to the mantainers. I've also found a similar bug report on SteamOS bug report from someone running it on Arch. I'll also report there.

from bazzite.

RodoMa92 avatar RodoMa92 commented on June 7, 2024

pip install hid==1.0.5 fixes it, might be worth to do this temporarily while upstream fixes this.

from bazzite.

unicornsandcandies avatar unicornsandcandies commented on June 7, 2024

pip install hid==1.0.5 fixes it, might be worth to do this temporarily while upstream fixes this.

Can you downgrade it in bazzite for now until it's fixed? It's a big issue and not everyone would see this workaround here.

from bazzite.

unicornsandcandies avatar unicornsandcandies commented on June 7, 2024

pip install hid==1.0.5 fixes it, might be worth to do this temporarily while upstream fixes this.

Can you downgrade it in bazzite for now until it's fixed? It's a big issue and not everyone would see this workaround here.

Yup. You need to do this on a system level.

I tried your workaround and issue persists:

deck@fedora:~$ sudo systemctl status jupiter-controller-update.service
Warning: The unit file, source configuration file or drop-ins of jupiter-controller-update.service changed on disk. Run 'systemctl >
× jupiter-controller-update.service - Jupiter Controller Firmware Update Service
Loaded: loaded (/usr/lib/systemd/system/jupiter-controller-update.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Sun 2024-05-12 23:04:06 CEST; 8min ago
Main PID: 4430 (code=exited, status=1/FAILURE)
CPU: 345ms

maj 12 23:04:06 fedora jupiter-controller-update[4445]: File "/usr/lib64/python3.12/json/encoder.py", line 258, in iterencode
maj 12 23:04:06 fedora jupiter-controller-update[4445]: return _iterencode(o, 0)
maj 12 23:04:06 fedora jupiter-controller-update[4445]: ^^^^^^^^^^^^^^^^^
maj 12 23:04:06 fedora jupiter-controller-update[4445]: File "/usr/lib64/python3.12/json/encoder.py", line 180, in default
maj 12 23:04:06 fedora jupiter-controller-update[4445]: raise TypeError(f'Object of type {o.class.name} '
maj 12 23:04:06 fedora jupiter-controller-update[4445]: TypeError: Object of type BusType is not JSON serializable
maj 12 23:04:06 fedora jupiter-controller-update[4430]: !! Failed to enumerate devices
maj 12 23:04:06 fedora systemd[1]: jupiter-controller-update.service: Main process exited, code=exited, status=1/FAILURE
maj 12 23:04:06 fedora systemd[1]: jupiter-controller-update.service: Failed with result 'exit-code'.
maj 12 23:04:06 fedora systemd[1]: Failed to start jupiter-controller-update.service - Jupiter Controller Firmware Update Service.

But I tried doing the same as root and got info that root still uses 1.0.6 but I can't touch it.

See:

deck@fedora:$ sudo pip install hid==1.0.5
Collecting hid==1.0.5
Using cached hid-1.0.5-py3-none-any.whl
Installing collected packages: hid
Attempting uninstall: hid
Found existing installation: hid 1.0.6
ERROR: Cannot uninstall hid 1.0.6, RECORD file not found. Hint: The package was installed by rpm.
deck@fedora:
$ sudo su
bash-5.2# pip install hid==1.0.5
Collecting hid==1.0.5
Using cached hid-1.0.5-py3-none-any.whl
Installing collected packages: hid
Attempting uninstall: hid
Found existing installation: hid 1.0.6
ERROR: Cannot uninstall hid 1.0.6, RECORD file not found. Hint: The package was installed by rpm.
bash-5.2#

from bazzite.

RodoMa92 avatar RodoMa92 commented on June 7, 2024

pip install hid==1.0.5 fixes it, might be worth to do this temporarily while upstream fixes this.

Can you downgrade it in bazzite for now until it's fixed? It's a big issue and not everyone would see this workaround here.

Yup. You need to do this on a system level.

I tried your workaround and issue persists:

deck@fedora:~$ sudo systemctl status jupiter-controller-update.service
Warning: The unit file, source configuration file or drop-ins of jupiter-controller-update.service changed on disk. Run 'systemctl >
× jupiter-controller-update.service - Jupiter Controller Firmware Update Service
Loaded: loaded (/usr/lib/systemd/system/jupiter-controller-update.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Sun 2024-05-12 23:04:06 CEST; 8min ago
Main PID: 4430 (code=exited, status=1/FAILURE)
CPU: 345ms

maj 12 23:04:06 fedora jupiter-controller-update[4445]: File "/usr/lib64/python3.12/json/encoder.py", line 258, in iterencode
maj 12 23:04:06 fedora jupiter-controller-update[4445]: return _iterencode(o, 0)
maj 12 23:04:06 fedora jupiter-controller-update[4445]: ^^^^^^^^^^^^^^^^^
maj 12 23:04:06 fedora jupiter-controller-update[4445]: File "/usr/lib64/python3.12/json/encoder.py", line 180, in default
maj 12 23:04:06 fedora jupiter-controller-update[4445]: raise TypeError(f'Object of type {o.class.name} '
maj 12 23:04:06 fedora jupiter-controller-update[4445]: TypeError: Object of type BusType is not JSON serializable
maj 12 23:04:06 fedora jupiter-controller-update[4430]: !! Failed to enumerate devices
maj 12 23:04:06 fedora systemd[1]: jupiter-controller-update.service: Main process exited, code=exited, status=1/FAILURE
maj 12 23:04:06 fedora systemd[1]: jupiter-controller-update.service: Failed with result 'exit-code'.
maj 12 23:04:06 fedora systemd[1]: Failed to start jupiter-controller-update.service - Jupiter Controller Firmware Update Service.

But I tried doing the same as root and got info that root still uses 1.0.6 but I can't touch it.

See:

deck@fedora:$ sudo pip install hid==1.0.5
Collecting hid==1.0.5
Using cached hid-1.0.5-py3-none-any.whl
Installing collected packages: hid
Attempting uninstall: hid
Found existing installation: hid 1.0.6
ERROR: Cannot uninstall hid 1.0.6, RECORD file not found. Hint: The package was installed by rpm.
deck@fedora:
$ sudo su
bash-5.2# pip install hid==1.0.5
Collecting hid==1.0.5
Using cached hid-1.0.5-py3-none-any.whl
Installing collected packages: hid
Attempting uninstall: hid
Found existing installation: hid 1.0.6
ERROR: Cannot uninstall hid 1.0.6, RECORD file not found. Hint: The package was installed by rpm.
bash-5.2#

Yeah, no, you can't since it's a root package. Updating the controller firmware requires running the software as a root user and therefore you can't override it by just installing as a local user in my testing. @KyleGospo has already said that it will temporarily downgrade it back shortly.

from bazzite.

unicornsandcandies avatar unicornsandcandies commented on June 7, 2024

pip install hid==1.0.5 fixes it, might be worth to do this temporarily while upstream fixes this.

Can you downgrade it in bazzite for now until it's fixed? It's a big issue and not everyone would see this workaround here.

Yup. You need to do this on a system level.
I tried your workaround and issue persists:
deck@fedora:$ sudo systemctl status jupiter-controller-update.service
Warning: The unit file, source configuration file or drop-ins of jupiter-controller-update.service changed on disk. Run 'systemctl >
× jupiter-controller-update.service - Jupiter Controller Firmware Update Service
Loaded: loaded (/usr/lib/systemd/system/jupiter-controller-update.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: exit-code) since Sun 2024-05-12 23:04:06 CEST; 8min ago
Main PID: 4430 (code=exited, status=1/FAILURE)
CPU: 345ms
maj 12 23:04:06 fedora jupiter-controller-update[4445]: File "/usr/lib64/python3.12/json/encoder.py", line 258, in iterencode
maj 12 23:04:06 fedora jupiter-controller-update[4445]: return _iterencode(o, 0)
maj 12 23:04:06 fedora jupiter-controller-update[4445]: ^^^^^^^^^^^^^^^^^
maj 12 23:04:06 fedora jupiter-controller-update[4445]: File "/usr/lib64/python3.12/json/encoder.py", line 180, in default
maj 12 23:04:06 fedora jupiter-controller-update[4445]: raise TypeError(f'Object of type {o.class.name} '
maj 12 23:04:06 fedora jupiter-controller-update[4445]: TypeError: Object of type BusType is not JSON serializable
maj 12 23:04:06 fedora jupiter-controller-update[4430]: !! Failed to enumerate devices
maj 12 23:04:06 fedora systemd[1]: jupiter-controller-update.service: Main process exited, code=exited, status=1/FAILURE
maj 12 23:04:06 fedora systemd[1]: jupiter-controller-update.service: Failed with result 'exit-code'.
maj 12 23:04:06 fedora systemd[1]: Failed to start jupiter-controller-update.service - Jupiter Controller Firmware Update Service.
But I tried doing the same as root and got info that root still uses 1.0.6 but I can't touch it.
See:
deck@fedora:
$ sudo pip install hid==1.0.5
Collecting hid==1.0.5
Using cached hid-1.0.5-py3-none-any.whl
Installing collected packages: hid
Attempting uninstall: hid
Found existing installation: hid 1.0.6
ERROR: Cannot uninstall hid 1.0.6, RECORD file not found. Hint: The package was installed by rpm.
deck@fedora:~$ sudo su
bash-5.2# pip install hid==1.0.5
Collecting hid==1.0.5
Using cached hid-1.0.5-py3-none-any.whl
Installing collected packages: hid
Attempting uninstall: hid
Found existing installation: hid 1.0.6
ERROR: Cannot uninstall hid 1.0.6, RECORD file not found. Hint: The package was installed by rpm.
bash-5.2#

Yeah, no, you can't since it's a root package. Updating the controller firmware requires running the software as a root user and therefore you can't override it by just installing as a local user in my testing. @KyleGospo has already said that it will temporarily downgrade it back shortly.

Nice, thank you. Hope devs will resolve it fast.

from bazzite.

KyleGospo avatar KyleGospo commented on June 7, 2024

Should be fixed in stable

from bazzite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.