Description of problem: Package libratbag fails to build from source in Fedora Rawhide. It is probably related to update to Python 3.11 7/8 ratbagctl-test FAIL 0.17s exit status 1 >>> LIBRATBAG_DATA_DIR=/builddir/build/BUILD/libratbag-0.16/data/devices MALLOC_PERTURB_=37 /builddir/build/BUILD/libratbag-0.16/redhat-linux-build/ratbagctl.test -v ――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――― stderr: Traceback (most recent call last): File "/builddir/build/BUILD/libratbag-0.16/redhat-linux-build/ratbagctl.test", line 32, in <module> import toolbox ^^^^^^^^^^^^^^ File "/builddir/build/BUILD/libratbag-0.16/redhat-linux-build/toolbox.py", line 110, in <module> ratbagctl = import_non_standard_path(RATBAGCTL_NAME, RATBAGCTL_PATH) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/libratbag-0.16/redhat-linux-build/toolbox.py", line 49, in import_non_standard_path module = imp.load_module(name, fp, os.path.basename(path), ('.py', 'rb', imp.PY_SOURCE)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/imp.py", line 235, in load_module return load_source(name, filename, file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/imp.py", line 172, in load_source module = _load(spec) ^^^^^^^^^^^ File "ratbagctl", line 24, 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'. Did you mean: 'coroutines'? ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 8/8 test-context OK 0.53s Summary of Failures: 7/8 ratbagctl-test FAIL 0.17s exit status 1 Ok: 7 Dependency changes from the last successful build: https://koschei.fedoraproject.org/build/13101030 Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/libratbag
Looks like this is an issue with python-evdev, not libratbag itself.
Basic problem: @asyncio.coroutine was removed in python 3.11 which we have in F37 now. This makes the import fail, definitely a python-evdev issue, not a libratbag issue. Upstream PR but not merged yet: https://github.com/gvalkov/python-evdev/pull/174
Upstream PR merged. Version 1.6.0 is now on pypi and on its way to rawhide: https://bodhi.fedoraproject.org/updates/FEDORA-2022-cff1e24afc
yep, thanks, confirmed in a podman container here. I reckon you can close this bug with RAWHIDE
*** Bug 2100362 has been marked as a duplicate of this bug. ***