Package Details: aider-chat-venv 0.82.0-1

Git Clone URL: https://aur.archlinux.org/aider-chat-venv.git (read-only, click to copy)
Package Base: aider-chat-venv
Description: AI pair programming in your terminal
Upstream URL: https://github.com/Aider-AI/aider
Licenses: Apache-2.0
Conflicts: aider-chat
Provides: aider-chat
Submitter: AlphaJack
Maintainer: AlphaJack
Last Packager: AlphaJack
Votes: 5
Popularity: 0.45
First Submitted: 2024-10-08 23:26 (UTC)
Last Updated: 2025-04-15 19:47 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Pinned Comments

AlphaJack commented on 2025-03-15 15:43 (UTC)

Please do not flag the package as out of date, it will automatically download through pip the latest available version

Latest Comments

1 2 3 4 Next › Last »

paulg commented on 2025-04-15 22:19 (UTC)

Using uv tool is a great way to install aider, and is one of the recommended methods. Two of the other recommended methods use that under the hood (aider-install, and the curl | sh methods).

Install docs: https://aider.chat/docs/install.html

Notes on aider's use of uv as an installer: https://aider.chat/2025/01/15/uv.html

0xA1E commented on 2025-04-15 21:41 (UTC)

@Auerhuhn Thanks!

As a side note, I found out that uv offers the uv tool install command. This allows for an isolated installation with a dedicated venv. Leaving this info here as I believe other users may wish to uv tool install aider-chat too.

Auerhuhn commented on 2025-04-15 18:41 (UTC)

@0xA1E and others: the upstream project is now compatible with Python 3.13. (A few bits and pieces are still missing but none of them matter as far as system packaging is concerned).

So I brought back the regular, non-venv version of the aider-chat PKGBUILD, which runs on system Python, and builds just fine in a chroot jail.

0xA1E commented on 2025-04-15 17:31 (UTC)

@Alphajack I appreciate the effort and idea to package the aider installer through a venv. However, it would seem that, when building the package with tools employing a chroot jail such as rua, the symlink to uv's python is broken, as it is not installed in the normal ~/.local/etc... location. I think @tamirzb's suggestion of using the AUR's python package is more sound.

tamirzb commented on 2025-03-31 15:13 (UTC)

@AlphaJack This works but I think can be a bit problematic. As far as I understand uv queries the system at install time to check if the required python version is available or not. If it is available it will use it instead of downloading python 3.12 on its own. This can cause aider to break if the user had python 3.12 at install time but later doesn't (either had an old version of the python package and updated it or had the python312 package installed and later removed it). I do believe my solution is more stable in that sense.

AlphaJack commented on 2025-03-31 12:57 (UTC)

@tamirzb I updated the PKGBUILD to use uv to generate a python 3.12 virtual environment, let me know if you experience issues

tamirzb commented on 2025-03-29 19:02 (UTC)

Aider doesn't support python 3.13 (https://github.com/Aider-AI/aider/issues/3037) which is now the version of python on the Arch repo.

@atomicfs @shaybox This is why it fails to install for you

I changed the PKGBUILD to use python 3.12 instead (which also should be installed from the AUR) which works for me:

diff --git a/PKGBUILD b/PKGBUILD
index 6161018..540fb8f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ license=("Apache-2.0")
 arch=("any")
 provides=("aider-chat" "aider-chat")
 conflicts=("aider-chat" "aider-chat")
-depends=("python")
+depends=("python312")
 makedepends=("jq")
 source=("aider.bin")
 b2sums=('d09f4ea9909488f5538bcd7c85c286d3a7c7386ed65b01d063c883e4a8cf96edd7525d2ec66045d63a0505c1929b9c699a2e514c19cd48ad086657abf6512aa9')
@@ -27,7 +27,7 @@ package() {
  # create virtual environment
  export PIP_DISABLE_PIP_VERSION_CHECK=1
  export PYTHONDONTWRITEBYTECODE=1
- python -m venv "$pkgdir/usr/share/aider-chat/venv"
+ python3.12 -m venv "$pkgdir/usr/share/aider-chat/venv"
  source "$pkgdir/usr/share/aider-chat/venv/bin/activate"
  # install aider-chat and dependencies using pip
  "$pkgdir/usr/share/aider-chat/venv/bin/"pip install -I aider-chat sounddevice soundfile

@AlphaJack could you change the PKGBUILD? (at least until aider supports python 3.13)

Auerhuhn commented on 2025-03-15 15:45 (UTC)

@AlphaJack done.

AlphaJack commented on 2025-03-15 15:43 (UTC)

Please do not flag the package as out of date, it will automatically download through pip the latest available version

AlphaJack commented on 2025-03-15 15:42 (UTC)

@Auerhuhn Thank you for your contributions, you can add me!