Closed lijinta1984 closed 5 months ago
I have created keys.cfg as mentioned in the README
I can't reproduce this. Let's run some checks:
# Activate your conda environment
from pathlib import Path
cfg_path = Path("/path/to/your/keys.cfg")
assert cfg_path.is_file()
config.Config(str(cfg_path))
what happens?
Closing because lack of follow-ups.
Describe the bug
Traceback (most recent call last): File "/home/debian/SWE-agent/run.py", line 321, in
main(args)
File "/home/debian/SWE-agent/run.py", line 90, in main
agent = Agent("primary", args.agent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/SWE-agent/sweagent/agent/agents.py", line 186, in init
self.model = get_model(args.model, args.config._commands + args.config.subroutine_types)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/SWE-agent/sweagent/agent/models.py", line 707, in get_model
return OpenAIModel(args, commands)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/debian/SWE-agent/sweagent/agent/models.py", line 225, in init
cfg = config.Config(os.path.join(os.getcwd(), "keys.cfg"))
^^^^^^^^^^^^^
AttributeError: module 'config' has no attribute 'Config'
AttributeError: module 'config' has no attribute 'Config'