Skip to content

Uncaught PermissionError in pathlib.py line 840 #5462

Description

@tinyopsec

Aider version: 0.86.2
Python version: 3.12.12
Platform: Linux-7.0.11-zen+-x86_64-with-glibc2.36
Python implementation: CPython
Virtual environment: Yes
OS: Linux 7.0.11-zen+ (64bit)
Git version: git version 2.39.5

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 501, in main
    loaded_dotenvs = load_dotenv_files(git_root, args.env_file, args.encoding)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "main.py", line 371, in load_dotenv_files
    if oauth_keys_file.exists():
       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "pathlib.py", line 860, in exists
    self.stat(follow_symlinks=follow_symlinks)
  File "pathlib.py", line 840, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/app/.aider/oauth-keys.env'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions