AutoGPT
AutoGPT copied to clipboard
Fix docker compose example volumes
-
The
auto_gpt_workspaceis created in the docker container inside/app/autogpt/auto_gpt_workspaceand not/app/auto_gpt_workspace, so it was not being correctly synced from host to container. -
Docker compose does not allow single file volumes, uncommenting the lines removed in this PR would cause a directory to be created and the error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/app/autogpt/__main__.py", line 5, in <module>
autogpt.cli.main()
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1635, in invoke
rv = super().invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/app/autogpt/cli.py", line 90, in main
run_auto_gpt(
File "/app/autogpt/main.py", line 135, in run_auto_gpt
ai_config = construct_main_ai_config()
File "/app/autogpt/prompts/prompt.py", line 88, in construct_main_ai_config
config = AIConfig.load(CFG.ai_settings_file)
File "/app/autogpt/config/ai_config.py", line 75, in load
with open(config_file, encoding="utf-8") as file:
IsADirectoryError: [Errno 21] Is a directory: 'ai_settings.yaml'
Background
Changes
Documentation
Test Plan
PR Quality Checklist
- [x] My pull request is atomic and focuses on a single change.
- [x] I have thoroughly tested my changes with multiple different prompts.
- [x] I have considered potential risks and mitigations for my changes.
- [x] I have documented my changes clearly and comprehensively.
- [x] I have not snuck in any "extra" small tweaks changes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 6, 2023 1:58am |
Codecov Report
Patch and project coverage have no change.
Comparison is base (
d184d0d) 60.92% compared to head (972054e) 60.92%.
Additional details and impacted files
@@ Coverage Diff @@
## master #3875 +/- ##
=======================================
Coverage 60.92% 60.92%
=======================================
Files 72 72
Lines 3304 3304
Branches 542 542
=======================================
Hits 2013 2013
Misses 1152 1152
Partials 139 139
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@ntindle @richbeales I understand there's a hold on merging PRs during the code rework, but this doesn't change any code and fixes the suggested usage instructions, which is causing lots of problems and questions in discord for new users.
yes, this being a non-code PR and one that is blocking other potential contributor from using the system, it should definitely be considered for review/integration despite the ongoing re-arch effort
Already fixed with another PR. Sorry.