Comments (7)
Looks like we can close this? Thanks @klieret
from swe-agent.
I looked at .traj file
here is the info, and the "submission" is null. i am using azure gpt4 endpoint. is there any configuration i am missing here?
"info": {
"exit_status": "submitted",
"submission": null,
"model_stats": {
"total_cost": 0.11188000000000001,
"instance_cost": 0.11188000000000001,
"tokens_sent": 10273,
"tokens_received": 305,
"api_calls": 1
}
}
from swe-agent.
Thanks for the report, this was probably fixed in #242. Let me know if switching to the latest version didn't solve this!
from swe-agent.
@klieret I'm using v0.4.0
and I seem to have the same kind of issue:
[...]
Given the complexity of the issue and the lack of explicit latency handling in the examined files, it may be necessary to consult with the development team or documentation to understand how latency is currently managed for MIDI regions and to determine the best
approach for implementing any required adjustments.
INFO 🎬 ACTION (primary)
submit
INFO Found submission:
INFO Saved trajectory to trajectories/root/gpt4__issue__default__t-0.00__p-0.95__c-10.00__install-1/967ef2.traj
INFO Saved predictions to trajectories/root/gpt4__issue__default__t-0.00__p-0.95__c-10.00__install-1/all_preds.jsonl
Traceback (most recent call last):
File "/app/run.py", line 150, in main
patch_path = save_patch(traj_dir, instance_id, info)
File "/app/run.py", line 281, in save_patch
patch_output_file.write_text(model_patch)
File "/usr/local/lib/python3.9/pathlib.py", line 1283, in write_text
raise TypeError('data must be str, not %s' %
TypeError: data must be str, not NoneType
WARNING ❌ Failed on 967ef2: data must be str, not NoneType
INFO Beginning environment shutdown...
INFO Agent container stopped
INFO Found image sweagent/swe-agent:latest with tags: ['sweagent/swe-agent:latest'], created: 2024-04-15T19:20:51.646667378Z for linux arm64.
DEBUG Starting container with command: docker run -i --rm --name sweagent-swe-agent-latest-7e58b0d4a9 sweagent/swe-agent:latest /bin/bash -l -m
INFO 🌱 Environment Initialized
from swe-agent.
Could you send me the full ommand that you ran?
Also it looks like you're running from the swe-agent-run
docker container, right? There's no v0.4.0 docker container yet, so I'm a bit confused what version you're running on.
from swe-agent.
In fact, on the latest swe-agent-run
docker container line 150 also doesn't correspond to the one from the traceback you sent. I believe you might be running on an old container.
from swe-agent.
Oh! I'm new to Docker, so I didn't know there was a matching docker container version.
I seem to be using the latest version:
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ./:/app/studio -v /Users/maximedupre/Desktop/SWE-agent/keys.cfg:/app/keys.cfg -v /Users/maximedupre/Desktop/docker-volume:/app/trajectories/root sweagent/swe-agent-run:latest python run.py --image_name=sweagent/swe-agent:latest --model_name gpt4 --per_instance_cost_limit 10.00 --data_path studio/issue.md --repo_path studio --config_file config/default.yaml --skip_existing=False
Edit
I believe that I need to run docker pull sweagent/swe-agent:latest
and that it's the version of my docker container that matters, not which git branch I have checkout :D
Edit 2
The error does not occur again after running docker pull sweagent/swe-agent:latest
and re-running the sweagent command.
from swe-agent.
Related Issues (20)
- => ERROR [2/4] COPY ../evaluation/evaluation.py /evaluation.py 0.0s HOT 4
- release dockerhub nightly should only trigger on `main`
- `CostLimitExceededError` when raised after blocklist or format issue
- setup/configuration issues on apple m3 HOT 3
- Issue running sklearn instance HOT 5
- SBL matplotlib instances fail at setup: "unexpected keyword argument 'python_version'" HOT 1
- `pylint-dev__pylint-7114` version conflict 'astroid<=2.14.0-dev0,>=2.12.2'
- SBL matplotlib instances time out
- Binary output causes `communicate` crash HOT 4
- AssertionError: `self.env.record` is None after task initiation in Gradio interface HOT 1
- Problem about end-of-line sequence HOT 3
- Gpt 3.5 SWE-Agent results HOT 1
- Yanked packages? "Failed on sqlfluff__sqlfluff-1625: Failed to install requirements.txt" HOT 5
- Is Creating Patch in SWE Agent means issue is resolves? How do I ensure issue is resolved? HOT 2
- How to run evaluation after patch has been created? HOT 1
- Can You explain in proper way how to run the swe bench evaluation on swe agent? HOT 2
- Can you write the command for SWE Bench, I could not understant about below statement
- Found a mistake in SWE-Agent Documentation at Benchmarking Section
- Cannot access the demo website HOT 1
- "No patch to save" after successful looking run HOT 1
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 swe-agent.