Skip to content
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

Uncaught PermissionError in pathlib.py line 1175 in aider-full docker image #2891

Closed
mikegehard opened this issue Jan 17, 2025 · 3 comments · May be fixed by #2902
Closed

Uncaught PermissionError in pathlib.py line 1175 in aider-full docker image #2891

mikegehard opened this issue Jan 17, 2025 · 3 comments · May be fixed by #2902
Labels
bug Something isn't working

Comments

@mikegehard
Copy link

mikegehard commented Jan 17, 2025

When trying to use the aider-full docker image to work on aider.
command run: docker run -it --user $(id -u):$(id -g) --volume $(pwd):/app paulgauthier/aider-full
Followed instructions here: https://aider.chat/docs/install/docker.html

Same issue happens with:
docker run -it --user $(id -u):$(id -g) --volume $(pwd):/app paulgauthier/aider

id -u
501

id -g
20

pwd
/Users/mikegehard/workspace/aiDev/aider

Aider version: 0.71.1
Python version: 3.10.16
Platform: Linux-6.10.14-linuxkit-aarch64-with-glibc2.36
Python implementation: CPython
Virtual environment: Yes
OS: Linux 6.10.14-linuxkit (64bit)
Git version: git version 2.39.5

An uncaught exception occurred:

Traceback (most recent call last):
  File "pathlib.py", line 1175, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/.aider/caches'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 711, in main
    check_version(io, verbose=args.verbose)
  File "versioncheck.py", line 94, in check_version
    VERSION_CHECK_FNAME.parent.mkdir(parents=True, exist_ok=True)
  File "pathlib.py", line 1179, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  File "pathlib.py", line 1175, in mkdir
    self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/.aider'

@mikegehard mikegehard changed the title Uncaught PermissionError in pathlib.py line 1175 Uncaught PermissionError in pathlib.py line 1175 in aider-full docker image Jan 17, 2025
@paul-gauthier paul-gauthier added the bug Something isn't working label Jan 17, 2025
@mikegehard
Copy link
Author

mikegehard commented Jan 17, 2025

Duplicate of #2865

@mikegehard
Copy link
Author

This should also be addressed in the devcontainers PR: #2905

@paul-gauthier
Copy link
Collaborator

Duplicate of #2865

@paul-gauthier paul-gauthier marked this as a duplicate of #2865 Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants