-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
any idea what I am doing wrong here ? #21
Comments
The error occurred due to the absence of configuration for the OPENAI_API_KEY in your code program. |
Which code should i fill out which I haven't. i filled (config.py, key.yaml, config.yaml), and does it work on powershell? |
self.openai_api_key = self._get('catto_key_censored') |
Could you provide the full paths of the config files? And maybe you could try to set up the vars in env. |
@geekan kk just a sec |
Hey sorry for the annoyance before I asked my roomate for help he got stuck and just wrote a request but he forgot to setup a venv so I came setup the venv and the rest of the stuff now I get this error : (metagpt) PS C:\Users\dolev\metagpt> python startup.py "Write a cli snake game" |
hey @dolev765 @geekan can you pls help me, actually i am unable to resolve this error and i don't know exactly where i made the mistake the error is: |
same, so how can i fix it |
I have the same issue , were you able to fix it? |
anyone found a fix? |
python startup.py "Write a cli lightning game game which teaches you how lightning works with interactive gameplay"
2023-07-07 19:32:24.269 | INFO | metagpt.config:init:43 - Config loading done.
Traceback (most recent call last):
File "C:\Windows\System32\metagpt\startup.py", line 5, in
from metagpt.software_company import SoftwareCompany
File "C:\Windows\System32\metagpt\metagpt\software_company.py", line 10, in
from metagpt.config import CONFIG
File "C:\Windows\System32\metagpt\metagpt\config.py", line 91, in
CONFIG = Config()
File "C:\Windows\System32\metagpt\metagpt\utils\singleton.py", line 21, in call
cls._instances[cls] = super(Singleton, cls).call(*args, **kwargs)
File "C:\Windows\System32\metagpt\metagpt\config.py", line 46, in init
raise NotConfiguredException("Set OPENAI_API_KEY first")
metagpt.config.NotConfiguredException: Set OPENAI_API_KEY first
The text was updated successfully, but these errors were encountered: