Trying to get this code assistant Aider to work on replit

Hello! I am experimenting with various tools to assist me with coding beyond just ghostwriter or bard, and I am trying to install this: GitHub - paul-gauthier/aider: aider is GPT powered coding in your terminal

I have it running on ubuntu and it is quite powerful, but up until then I was doing all my work in replit and I want a way to integrate the two.

I’m not sure if the Nix package manager stuff is messing it up or what.

here is a repl cloned from the github: aider (1) - Replit

I am a novice with things regarding development environments an am just trying to do text to code with LLM stuff on an entire codebase scale without having to copy and paste or press insert.

Anyways, I appreciate anyone who took the time to read this! Hoping I can get this working and start my next big project here on replit!

@StevenSorensen2 your program isn’t running because the starting file in your repl is main.py, but you don’t have a main.py file your repl.
You need to make a main.py file or change the .replit file for your program to work.

2 Likes

Hey SnakeyKing thanks for the reply!

I figured I would reclone the Git for this post, I had gotten that far in my own attempts, but I am getting this error:
Traceback (most recent call last):
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/init.py”, line 89, in
refresh()
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/init.py”, line 76, in refresh
if not Git.refresh(path=path):
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/cmd.py”, line 318, in refresh
cls().version()
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/cmd.py”, line 741, in
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/cmd.py”, line 1315, in _call_process
return self.execute(call, **exec_kwargs)
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/cmd.py”, line 1109, in execute
raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd(‘git’) failed due to: exit code(1)
cmdline: git version
stderr: ‘git: /nix/store/s9qbqh7gzacs7h68b2jfmn9l6q4jwfjz-glibc-2.33-59/lib/libc.so.6: version `GLIBC_2.34’ not found (required by /nix/store/mdck89nsfisflwjv6xv8ydj7dj0sj2pn-gcc-11.3.0-lib/lib/libgcc_s.so.1)’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “aider/main.py”, line 6, in
import git
File “/home/runner/aider-1/venv/lib/python3.10/site-packages/git/init.py”, line 91, in
raise ImportError(“Failed to initialize: {0}”.format(_exc)) from _exc
ImportError: Failed to initialize: Cmd(‘git’) failed due to: exit code(1)
cmdline: git version
stderr: ‘git: /nix/store/s9qbqh7gzacs7h68b2jfmn9l6q4jwfjz-glibc-2.33-59/lib/libc.so.6: version `GLIBC_2.34’ not found (required by /nix/store/mdck89nsfisflwjv6xv8ydj7dj0sj2pn-gcc-11.3.0-lib/lib/libgcc_s.so.1)’

I’m wondering if it has something to do with privileges because it is using typer to execute commands?

Thanks again!

one more thing I thought of, and this may be obvious in the documentation but I can’t find it (not that I’ve read all of it) it does require the use of commands that I would have to add to the path, correct? Typically you start the program with aider myfile.py

To get these commands working, you’ll need to configure the replit.nix file (you can search Nix packages here). Once you’ve correctly configured the Nix file, you should be able to run aider myfile.py in the shell.

2 Likes