aider icon indicating copy to clipboard operation
aider copied to clipboard

Uncaught FileNotFoundError in base.py line 217

Open jsgoecke opened this issue 1 year ago • 1 comments

Aider version: 0.56.0 Python version: 3.10.14 Platform: macOS-15.0-arm64-arm-64bit Python implementation: CPython Virtual environment: No OS: Darwin 24.0.0 (64bit) Git version: git version 2.45.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 336, in main
    git_root = get_git_root()
  File "main.py", line 32, in get_git_root
    repo = git.Repo(search_parent_directories=True)
  File "base.py", line 217, in __init__
    epath = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory

jsgoecke avatar Sep 15 '24 19:09 jsgoecke

Thank you for filing this issue.

The error you reported

FileNotFoundError: [Errno 2] No such file or directory

is not conclusive without more context. Can you please describe what you did when this error occurred? Did you start aider inside a git repository folder?

Thank you.

fry69 avatar Sep 15 '24 20:09 fry69

Thanks for trying aider and filing this issue.

The fix is available in the main branch. You can get it by installing the latest version from github:

aider --install-main-branch

# or...

python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you. I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.

paul-gauthier avatar Sep 20 '24 18:09 paul-gauthier