princeton-nlp / SWE-agent

SWE-agent takes a GitHub issue and tries to automatically fix it, using GPT-4, or your LM of choice. It solves 12.47% of bugs in the SWE-bench evaluation set and takes just 1 minute to run.
https://princeton-nlp.github.io/SWE-agent/
MIT License
11.86k stars 1.18k forks source link

Improve "RuntimeError: Image sweagent/swe-agent:latest not found. Please ensure it is built and available. Please double-check that you followed all installation/setup instructions from the readme." error #620

Open samuela opened 5 days ago

samuela commented 5 days ago

Describe the feature

When running swe-agent for the first time, I am faced with

  RuntimeError: Image sweagent/swe-agent:latest not found. Please ensure it is built and available. Please double-check that you followed all installation/setup instructions from the readme.

This error message provides little context on what is wrong and how to move forward.

Potential Solutions

ofirpress commented 5 days ago

This is for installation with docker? If this doesn't work, shouldn't users just try the non-docker install?

locona commented 4 days ago

@samuela For reference, here's how I improved mine.

I ran docker pull latest again and docker run and it worked fine

samuela commented 3 days ago

This is for installation with docker? If this doesn't work, shouldn't users just try the non-docker install?

This is for the source install, but afaiu regardless of installation approach trajectories are evaluated within sweagent/swe-agent:latest containers.

klieret commented 3 days ago

Yup, @samuela is right, we could make the error message nicer (and yes, this is for all installation variants). And yes @locona , that's the way to resolve it :)

Gonna improve this as @samuela suggested soon