AutoGPT: PermissionError: [Errno 13] Permission denied: '../logs'

Dear Auto-GPT Team,

When I tried to run the following command python scripts/main.py --debug

I got the following error

Traceback (most recent call last): File “scripts/main.py”, line 3, in <module> import commands as cmd File “/workspaces/Auto-GPT/scripts/commands.py”, line 3, in <module> from memory import get_memory File “/workspaces/Auto-GPT/scripts/memory/init.py”, line 9, in <module> from memory.redismem import RedisMemory File “/workspaces/Auto-GPT/scripts/memory/redismem.py”, line 10, in <module> from logger import logger File “/workspaces/Auto-GPT/scripts/logger.py”, line 192, in <module> logger = Logger() File “/workspaces/Auto-GPT/scripts/config.py”, line 20, in call cls._instances[cls] = super( File “/workspaces/Auto-GPT/scripts/logger.py”, line 29, in init os.makedirs(log_dir) File “/usr/local/lib/python3.8/os.py”, line 223, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: ‘…/logs’

I would appreciate your help

Kind regards Mahmoud

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

I’m facing the same error when running it on a dev container in vscode. It’s running on a Macbook Pro with M1 if it helps

I’m running docker container on macOS. Another workaround I did is edit Dockerfile:

# RUN chown appuser:appuser /home/appuser
RUN chown appuser:appuser /home

same experience. I’m using Dev Container on Windows.