-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.13 support #1984
Comments
Related ticket/comment Aider-AI/grep-ast#7 (comment) |
Seeing the same error on Mac with python 3.13. |
On tree-sitter-languages, there is no activity in their repo since Feb 4th, 2024. Would it be possible to fork / vendor it? Or invent any other workaround? Python 3.13 is the default in Fedora and Mac/Homebrew now, so we should think of something. |
I can install with Python 3.13 by batching the install with tree-sitter-languages from git. After
I'll tell aider bot to fix audioop deprecation. Pull request pending |
Failed to install on Windows 11 with python 3.13
|
Ah, the old pkgutil ImpImporter shuffle. The ImpImporter class was removed from pkgutil in Python 3.4, and pip versions older than 10.0.0 relied on it. The message should say, "Hey, this pip is old. Want me to update it?" But instead we get an update command that doesn't work. |
It should be easy to install aider with python -m pip install uv # If you need to install uv
uv tool install --python python3.12 aider-chat |
I've also got an even easier experimental install method you could try. I would love feedback on whether it works well for you. python -m pip install aider-install
aider-install For more info see the README: |
this worked on win11 with python 3.13 |
this just uses python 3.12 on the bg? |
Yes. |
archlinux just broke, we can't install aider-chat with pipx anymore, oh well, it was eating my claude allowance like crazy anyway kreijstal@kreijstalnuc:~/git/a749bb4442714515f93efdb7f6306e69$ python --version |
Replacing this with #3037. |
Aider must be installed with python 3.9 - 3.12. You can't install it directly with python 3.13.
That said, there are very easy ways for python3.13 users to install aider. These methods will quickly and seamlessly install python3.12 and aider and all its dependencies in an isolated environment.
With aider-install
One-liners
These one-liners will install aider, along with python 3.12 if needed. They are based on the uv installers.
Windows
Mac & Linux
Use curl to download the script and execute it with sh:
curl -LsSf https://aider.chat/install.sh | sh
If your system doesn't have curl, you can use wget:
wget -qO- https://aider.chat/install.sh | sh
Install with uv
You can install aider with uv:
python -m pip install uv # If you need to install uv uv tool install --force --python python3.12 aider-chat@latest
This will install uv using your existing python version 3.8-3.13, and use it to install aider. If needed, uv will automatically install a separate python 3.12 to use with aider.
Also see the docs on other methods for installing uv itself.
The text was updated successfully, but these errors were encountered: