Comments (6)
from metagpt.
@gnoejuan
I'm sorry I couldn't locate the problem according to your description.
I have a few suggestions that might help:
- Make sure your workdir in container is
/app/metagpt
which contains the MetaGPT codes, and execpython startup.py "something"
in the/app/metagpt
directory. - Make sure the config directory is in workdir. The correct path like this:
/app/metagpt/config/key.yaml
. Then the program can find the config. - Change the config content by mounting a file or
sed
in Dockerfile. Make sure the program can work by configfile. - Give parameters through environment variables.
By the way, you can debug your container by the following step:
docker run --name test -d docker.io/library/metagpt:latest tail -f /dev/null
docker exec -it test /bin/sh
cat config/key.yaml
python startup.py "do something"
export OPENAI_API_KEY="xxx"
python startup.py "do something"
...
Then you can find where the problem is.
from metagpt.
Awesome! Thank you!
So, looks like with the command line I was running earlier, the mount was in the wrong place! Good catch!
But, before I figured out the mount issue, when I was testing the
export OPENAI_API_KEY="xxx"
python startup.py "do something"
step, I ran into the NotConfiguredException.
So, I'm happy and taken care of ( I can modify the Job to use the config ), the documentation in the Readme does suggest that an environment variable should also be a viable approach.
from metagpt.
I know the problem, because config.yaml has higher priority, so the stub in config.yaml blocks the env variable. I will fix this in the next update
from metagpt.
da11d38
pushed. check it again.
from metagpt.
Yup! That worked! The Job was able to complete using the environment variables!
from metagpt.
Related Issues (20)
- Always getting the same Code Plan and Change during the incremental development HOT 1
- After fresh install of metagpt using pip `--init-config` causes `metagpt.config.NotConfiguredException` HOT 8
- Warnings and errors while trying to execute metagpt utility with local LLM HOT 4
- New improvements (PB)
- Running the same prompt will repeatedly overwrite project files in the workspace
- Error after supplementing prompt requirements
- The instructions and usage of --help need to be added to the official documentation.
- Generate garbled code starting with u, incorrect JSON format, duplicate request HOT 5
- Issues related with write_code_review and Total running cost HOT 3
- AttributeError: module 'setuptools.errors' has no attribute 'CompileError' HOT 1
- [IPKernelApp] WARNING | Parent appears to have exited, shutting down
- how to run werewolf in the current environment HOT 1
- 忽略用户需求,转而产出game.py HOT 1
- pydantic_core._pydantic_core.ValidationError: 1 validation error for Config HOT 3
- There is a bug of zhipuai llm while using metagpt on ubuntu22.04 under the environment of WSL2 of windows11 Home edition HOT 5
- 如何实现使LLM输出符合格式要求的SOP或Json? HOT 1
- GLM4一直报错 HOT 3
- 百度千帆API调用失败 HOT 2
- ModuleNotFoundError: No module named 'pwd' HOT 2
- setted "repair_llm_output: true" in config2.yaml, but still meet the JSONDecodeError HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metagpt.