Package Details: aider-chat-venv 0.59.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: 4
Popularity: 0.026718
First Submitted: 2024-10-08 23:26 (UTC)
Last Updated: 2024-10-08 23:26 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

gwpl commented on 2024-12-24 17:12 (UTC)

In case you run into problems , maybe this will be helpful... finally I haven't used that package but it may help in fixing package:

Insight: Aider now works only with python 3.12

source: author of aider paul-gauthier : https://github.com/Aider-AI/aider/issues/2391#issuecomment-2495517685

Solution:
pacman -S python-pip python-pipx
pacaur -S python312
pipx install aider-chat --python python3.12

I also provided Dockerfile here: https://github.com/Aider-AI/aider/issues/2391#issuecomment-2561298115

drew33 commented on 2024-11-01 13:50 (UTC) (edited on 2024-11-01 14:03 (UTC) by drew33)

Hi @AlphaJack, thanks for picking up this package.

Unfortunately, the b2sums is out of date, should be: d09f4ea9909488f5538bcd7c85c286d3a7c7386ed65b01d063c883e4a8cf96edd7525d2ec66045d63a0505c1929b9c699a2e514c19cd48ad086657abf6512aa9

Also, the version check isn't reliable - I'm getting this currently:

curl -s "https://api.github.com/repositories/638629097/releases/latest"
{"message":"API rate limit exceeded for XXX.XXX.XXX.XXX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

Here's a one liner that I think will be more reliable:

git ls-remote --tags https://github.com/Aider-AI/aider | awk '{print $2}' | grep 'refs/tags/v' | sed -e 's_refs/tags/v__' | sort -V | tail -n 1

paulg commented on 2024-09-11 16:41 (UTC)

It sounds like this AUR package will install a broken version of aider, since it can't respect the pinned dependencies that aider requires. Using "latest" versions of all dependencies is known to not work with aider at this time.

I'd recommend that users install aider via pip or pipx, according to the recommended install instructions:

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

carsme commented on 2024-09-11 06:21 (UTC) (edited on 2024-09-11 06:22 (UTC) by carsme)

Aider author here. Thanks for adding aider as an AUR package!

Hey @paulg, thanks for creating aider!

Am I correct that this AUR package always installs the latest version of python dependencies?

Arch Linux generally only packages one version per package, ideally the latest. So yes, this is correct.

If so, that is almost certainly going to produce a broken aider install. I am receiving bug reports along these lines that appear to be coming from AUR installs.

That is unfortunate. I would hope and encourage AUR users to first report their issues here, not upstream.

Please let me know if there's anything I can do to help ensure a smooth AUR install experience.

A part from supporting more recent dependency versions, or discouraging AUR installs, I'm afraid I'm not sure what can be done upstream. This is more on our (the packager) end.

Unfortunately, I don't use aider myself anymore, so I'm not really interested in working on this - But if anyone else is, just ping me and I'll add you as co-maintainer. One option would be to install aider in virtualenv with vendored dependencies (reference: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=archivebox).

paulg commented on 2024-09-10 13:38 (UTC)

Aider author here. Thanks for adding aider as an AUR package!

Aider depends on specific versions of multiple python packages. In particular see the pinned versions at the bottom of aider's main requirements.in file, with notes.

https://github.com/paul-gauthier/aider/blob/main/requirements/requirements.in

In addition, litellm changes quickly and often introduces bugs and backwards incompatible changes.

Am I correct that this AUR package always installs the latest version of python dependencies? If so, that is almost certainly going to produce a broken aider install. I am receiving bug reports along these lines that appear to be coming from AUR installs.

Please let me know if there's anything I can do to help ensure a smooth AUR install experience.

f0-x commented on 2024-09-10 01:27 (UTC) (edited on 2024-09-10 01:30 (UTC) by f0-x)

Currently facing the issue below, for the following specifications. It occurs after the aider responds on the first prompt. Could anyone help me on this one please?

  • Aider version: 0.55.0
  • Python version: 3.12.5
  • Platform: Linux-6.10.8-arch1-1-x86_64-with-glibc2.40
  • Python implementation: CPython
  • Virtual environment: No
  • OS: Linux 6.10.8-arch1-1 (64bit)
  • Git version: git version 2.46.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 694, in main
    coder.run()
  File "base_coder.py", line 730, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 773, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1194, in send_message
    lint_errors = self.lint_edited(edited)
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1288, in lint_edited
    errors = self.linter.lint(self.abs_root_path(fname))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "linter.py", line 93, in lint
    lintres = cmd(fname, rel_fname, code)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "linter.py", line 110, in py_lint
    basic_res = basic_lint(rel_fname, code)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "linter.py", line 205, in basic_lint
    parser = get_parser(lang)
             ^^^^^^^^^^^^^^^^
  File "core.pyx", line 19, in tree_sitter_languages.core.get_parser
  File "core.pyx", line 14, in tree_sitter_languages.core.get_language
TypeError: __init__() takes exactly 1 argument (2 given)

I also have created a Github issue on aider-chat's repo for this. https://github.com/paul-gauthier/aider/issues/1452

vamastah commented on 2024-05-25 09:36 (UTC)

There is another issue with the latest PKGBUILD:

==> Validating source files with b2sums... aider_chat-0.36.0.tar.gz ... FAILED ==> ERROR: One or more files did not pass the validity check!

It seems that the provided b2sum is incorrect. b2sum of my downloaded archive is as follows: 8055e2566f69a596ab2e7d4a39719d5c86ab51132f37e23564dd819fd0b630b8f40321761dd738089515aca5140bcfc948086451e1a3d6fdd5b224e0347d85da aider_chat-0.36.0.tar.gz

vamastah commented on 2024-05-24 07:46 (UTC) (edited on 2024-05-24 07:50 (UTC) by vamastah)

@AlphaJack Sure, it works now.

Other suggestions:

  • aider has optional dependency of google-generativeai from pip (I could not find google-generativeai on AUR).

  • aider has python-tree-sitter subdependency, but when installing from AUR, the latest version is installed, which causes aider to crash. python-tree-sitter needs to be downgraded (0.22.3-1 => 0.21.3-1) manually to make it work.

  • aider 0.36 came out :)