A workaround may be to install an older version. e.g. this worked for me on Buster (32-bit) with desktop (Python 2.7.16):
Code:
pi@pibust:~ $ pip install pynput==1.5.0Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting pynput==1.5.0 Downloading https://files.pythonhosted.org/packages/48/9b/7d0f1088c92cc342dc63eb66a80c077a388288780e9ce093b7f2c40cff23/pynput-1.5.0-py2.py3-none-any.whl (85kB) 100% |████████████████████████████████| 92kB 1.8MB/s Requirement already satisfied: enum34; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from pynput==1.5.0) (1.1.6)Collecting python-xlib>=0.17; "linux" in sys_platform (from pynput==1.5.0) Downloading https://files.pythonhosted.org/packages/fc/b8/ff33610932e0ee81ae7f1269c890f697d56ff74b9f5b2ee5d9b7fa2c5355/python_xlib-0.33-py2.py3-none-any.whl (182kB) 100% |████████████████████████████████| 184kB 1.2MB/s Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from pynput==1.5.0) (1.12.0)Installing collected packages: python-xlib, pynputSuccessfully installed pynput-1.5.0 python-xlib-0.33
Statistics: Posted by neilgl — Sun May 05, 2024 10:23 am