Uncaught TypeError in selectors.py line 523
Aider version: 0.57.1 Python version: 3.9.19 Platform: macOS-14.6.1-x86_64-i386-64bit Python implementation: CPython Virtual environment: No OS: Darwin 23.6.0 (64bit) Git version: git version 2.45.2
An uncaught exception occurred:
Traceback (most recent call last):
File "selector_events.py", line 256, in _add_reader
key = self._selector.get_key(fd)
File "selectors.py", line 193, in get_key
raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '10 is not registered'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aider", line 8, in <module>
sys.exit(main())
File "main.py", line 709, in main
coder.run()
File "base_coder.py", line 722, in run
user_message = self.get_input()
File "base_coder.py", line 735, in get_input
return self.io.get_input(
File "io.py", line 352, in get_input
line = self.prompt_session.prompt(
File "prompt.py", line 1035, in prompt
return self.app.run(
File "application.py", line 1002, in run
return asyncio.run(coro)
File "runners.py", line 39, in run
loop = events.new_event_loop()
File "events.py", line 761, in new_event_loop
return get_event_loop_policy().new_event_loop()
File "events.py", line 659, in new_event_loop
return self._loop_factory()
File "unix_events.py", line 54, in __init__
super().__init__(selector)
File "selector_events.py", line 56, in __init__
self._make_self_pipe()
File "selector_events.py", line 107, in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
File "selector_events.py", line 258, in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
File "selectors.py", line 523, in register
self._selector.control([kev], 0, 0)
TypeError: changelist must be an iterable of select.kevent objects
Thank you for filing this issue.
Can you please try to install or reinstall aider in a separate Python environment? Either with venv or pipx?
Please remove the existing environment/aider installation first, e.g. with pipx:
$ pipx uninstall aider-chat
uninstalled aider-chat! ✨ 🌟 ✨
$ pipx install aider-chat
installed package aider-chat 0.57.1, installed using Python 3.12.6
These apps are now globally available
- aider
done! ✨ 🌟 ✨
This document may be helpful -> https://aider.chat/docs/troubleshooting/imports.html
I'm closing this issue for now.
If any new related concerns arise, please feel free to comment, and I'll reopen the issue.