Closed harsha7890 closed 1 month ago
Well, have you checked whether the file that is reported missing exists? It should be part of the normal swe-agent distribution?
@klieret , it is fixed now, distribution folder is missing in trajectories in root folder, I copied from swe-agent/trajectories.
Great to hear that
Describe the bug
I built the docker from source, while running the script we are getting /swe-agent-ssdlc /trajectories/demonstrations/replaymarshmallow-codemarshmallow-1867 defaultt-0.20p-0.95c-2.00__install-1_install_from_source/mars hmallow-codemarshmallow-1867.traj'
Steps/commands/code to Reproduce
with latest code, running into this issue.
Error message/results
/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc/venv/bin/python -m run --model_name gpt4 --data_path https://github.com/sandbox-sandbox/development-portal-documentation/issues/728 --config_file config/default_from_url.yaml --open_pr INFO Logging to
trajectories/rharshavard/gpt4sandbox-sandboxdevelopment-portal-docu mentationdefault_from_urlt-0.00p-0.95c-3.00__install-1/run-2410 23134339.log
INFO 📙 Arguments: actions:
apply_patch_locally: false
INFO Base commit reference None resolved to commit hash
dc4f6d0f0d48d21db8a3ff8044344b64c453629a
INFO 💽 Loaded dataset from
https://github.com/sandbox-sandbox/development-portal-docume ntation/issues/728
INFO Found image sweagent/swe-agent:latest with tags:
['sweagent/swe-agent:latest'], created: 2024-10-23T08:12:25.758041047Z for linux arm64.
DEBUG Starting container with command: docker run -i --rm --name
sweagent-swe-agent-latest-0737fba1dc sweagent/swe-agent:latest
/bin/bash -l
INFO 🌱 Environment Initialized
DEBUG Environment initialization took 3.73 seconds
INFO ▶️ Beginning task 0
Trying to clone from non mirror... INFO Trying to clone from non-mirror...
WARNING install_environment is set to True, but the data path is a GitHub URL
without an environment config file (environment_config key/flag).
Skipping conda environment installation.
INFO Initializing agent settings for container
1ab6b6d0b86d691bd1b54511899136b5ed7fbcda96a8086d5db9cbbd37cc808d
INFO Resetting model stats
INFO SYSTEM (primary)
SETTING: You are an autonomous programmer, and you're working directly in the command line with a special interface.
INFO DEMONSTRATION:
/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc/ trajectories/demonstrations/replaymarshmallow-codemarshmallow-1867_ _defaultt-0.20p-0.95c-2.00install-1_install_from_source/marsh mallow-code__marshmallow-1867.traj
WARNING Traceback (most recent call last):
File
"/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /run.py", line 395, in main
self.run(index)
File
"/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /run.py", line 379, in run
info, trajectory = self.agent.run(
^^^^^^^^^^^^^^^
File
"/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /sweagent/agent/agents.py", line 1050, in run
self.setup(setup_args, init_model_stats)
File
"/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /sweagent/agent/agents.py", line 377, in setup
self.setup_attempt(init_model_stats=init_model_stats)
File
"/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /sweagent/agent/agents.py", line 408, in setup_attempt
demo_history =
json.loads(Path(demonstration_path).read_text())["history"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/rharshavard/.pyenv/versions/3.12.4/lib/python3.12/pathlib.py", line 1027, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/rharshavard/.pyenv/versions/3.12.4/lib/python3.12/pathlib.py", line 1013, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /trajectories/demonstrations/replaymarshmallow-codemarshmallow-1867 defaultt-0.20p-0.95c-2.00install-1_install_from_source/mars hmallow-codemarshmallow-1867.traj'
WARNING ❌ Failed on sandbox-sandboxdevelopment-portal-documentation-i728:
[Errno 2] No such file or directory:
'/Users/rharshavard/Documents/code/ssdlc-agent-workflow/swe-agent-ssdlc /trajectories/demonstrations/replaymarshmallow-codemarshmallow-1867 defaultt-0.20p-0.95c-2.00install-1_install_from_source/mars hmallow-codemarshmallow-1867.traj'
INFO Beginning environment shutdown...
INFO Agent container stopped
INFO Found image sweagent/swe-agent:latest with tags:
['sweagent/swe-agent:latest'], created: 2024-10-23T08:12:25.758041047Z for linux arm64.
DEBUG Starting container with command: docker run -i --rm --name
sweagent-swe-agent-latest-f04cb459d5 sweagent/swe-agent:latest
/bin/bash -l
INFO 🌱 Environment Initialized
INFO Beginning environment shutdown...
INFO Agent container stopped
Process finished with exit code 0
System Information
mac m1
Checklist
git pull
anddocker pull sweagent/swe-agent:latest
)