Code Monkey home page Code Monkey logo

Comments (7)

ofirpress avatar ofirpress commented on August 16, 2024 1

Looks like we can close this? Thanks @klieret

from swe-agent.

viciaky avatar viciaky commented on August 16, 2024

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.

klieret avatar klieret commented on August 16, 2024

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.

maximedupre avatar maximedupre commented on August 16, 2024

@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.

klieret avatar klieret commented on August 16, 2024

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.

klieret avatar klieret commented on August 16, 2024

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.

maximedupre avatar maximedupre commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.