Bug 2108313 - python3.11 asyncio module error
Summary: python3.11 asyncio module error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-evdev
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: gvalkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2022-07-18 20:10 UTC by edpil02
Modified: 2022-07-19 07:39 UTC (History)
10 users (show)

Fixed In Version: python-evdev-1.6.0
Clone Of:
Environment:
Last Closed: 2022-07-19 07:39:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github gvalkov python-evdev pull 174 0 None Merged evdev/eventio_async.py: python3.11 compatibility 2022-07-19 07:39:16 UTC

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 :)


Note You need to log in before you can comment on or make changes to this bug.