aw-watcher-afk icon indicating copy to clipboard operation
aw-watcher-afk copied to clipboard

build(deps): pynput needs python 3.13

Open Game4Move78 opened this issue 11 months ago • 0 comments

Internal changes to the Python threading library in 3.13 breaks pynput. Likely to be fixed when fixup/listener-thread-handle is merged, but at the moment Python 3.13 will throw this error:

2024-12-26 15:58:58 [ERROR]: Unhandled exception in listener callback  (pynput.mouse.Listener:233)
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/pynput/_util/__init__.py", line 229, in inner
    return f(self, *args, **kwargs)
  File "/usr/lib/python3.13/site-packages/pynput/_util/xorg.py", line 470, in _handler
    self._handle(self._display_stop, event)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '_thread._ThreadHandle' object is not callable

Related to activitywatch#1122, pynput#614


[!IMPORTANT] Update Python version constraint in pyproject.toml to exclude 3.13 due to pynput compatibility issue.

  • Dependencies:
    • Update Python version constraint in pyproject.toml to ^3.8,<3.13 due to pynput compatibility issue with Python 3.13.
    • Reference issue pynput#614 for more details.

This description was created by Ellipsis for 1f5ac1ff7c2ab1999a7b479ae90dfadb1771ccd2. It will automatically update as commits are pushed.

Game4Move78 avatar Feb 06 '25 23:02 Game4Move78