ShadowBlip / ryzenadj-controller

Python module that provides a userspace interface for RyzenAdj using Unix Sockets
GNU General Public License v3.0
1 stars 1 forks source link

[Python 3.12] Fails with `ImportError: cannot import name 'coroutine' from 'asyncio' (/usr/lib/python3.12/asyncio/__init__.py). Did you mean: 'coroutines'?` #2

Open dreirund opened 4 months ago

dreirund commented 4 months ago

Ahoj,

I try to use this on Python 3.12.

It fails with ImportError: cannot import name 'coroutine' from 'asyncio' (/usr/lib/python3.12/asyncio/__init__.py). Did you mean: 'coroutines'?:

Traceback (most recent call last):
  File "/usr/bin/ryzenadj-controller", line 5, in <module>
    from ryzenadj_controller.ryzenadj_controller import main
  File "/usr/lib/python3.12/site-packages/ryzenadj_controller/ryzenadj_controller.py", line 5, in <module>
    from asyncio import (all_tasks, CancelledError, coroutine, create_task,
ImportError: cannot import name 'coroutine' from 'asyncio' (/usr/lib/python3.12/asyncio/__init__.py). Did you mean: 'coroutines'?

Is there any specific dependency missing, or is it an issue with never python version that needs adaption of your code?

Regards!

pastaq commented 4 months ago

Yeah, I basically abandoned this project because python-asyncio deprecated and removed coroutine, which ran the main loop. It could probably be fixed up if you want to take over the project. I'm going to archive this one.