Bug 2108313

Summary: python3.11 asyncio module error
Product: [Fedora] Fedora Reporter: edpil02 <edpil02>
Component: python-evdevAssignee: gvalkov <georgi.t.valkov>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, georgi.t.valkov, mhroncok, pviktori, python-maint, python-sig, steve, thrnciar, torsava, vstinner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-evdev-1.6.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-19 07:39:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2016048    

Description edpil02 2022-07-18 20:10:12 UTC
Cant launch solaar program with python3.11.

@tuxmachine ~]$ solaar

solaar: error: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/solaar/gtk.py", line 157, in main
    import solaar.ui as ui
  File "/usr/lib/python3.11/site-packages/solaar/ui/__init__.py", line 101, in <module>
    from . import diversion_rules, notify, tray, window  # isort:skip  # noqa: E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/solaar/ui/diversion_rules.py", line 30, in <module>
    from logitech_receiver import diversion as _DIV
  File "/usr/lib/python3.11/site-packages/logitech_receiver/diversion.py", line 31, in <module>
    import evdev
  File "/usr/lib64/python3.11/site-packages/evdev/__init__.py", line 5, in <module>
    from evdev.device import DeviceInfo, InputDevice, AbsInfo, EvdevError
  File "/usr/lib64/python3.11/site-packages/evdev/device.py", line 12, in <module>
    from evdev.eventio_async import EventIO, EvdevError
  File "/usr/lib64/python3.11/site-packages/evdev/eventio_async.py", line 63, in <module>
    class ReadIterator(object):
  File "/usr/lib64/python3.11/site-packages/evdev/eventio_async.py", line 88, in ReadIterator
    @asyncio.coroutine
     ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

Comment 1 edpil02 2022-07-18 20:41:09 UTC
The crash  is due to Python-evdev-1.5.0

Rawhide python-evdev-1.6.0 solves the issue

Comment 2 Petr Viktorin (pviktori) 2022-07-19 07:39:17 UTC
Please update to python-evdev-1.6.0.
More generally, please keep a Rawhide system updated, especially before reporting a bug :)