Closed SM-Kumail-Rizvi closed 3 months ago
Hi @SM-Kumail-Rizvi. Thank you for writing all of this up, I'm not sure if I can help you with this, as this is probably has to do with your gradio app. As you write, env.record
should be set in env.reset
as self.record = self.data[self.idx]
. If this line runs before your check, it sounds like self.data
is filled with None
values, so you'd have to check how that list is populated in your usage of SWE-agent.
Describe the bug
While attempting to run an inference task using a Gradio interface on the SWE Agent, I encountered an AssertionError. The error occurs right after initiating the task, where self.env.record is expected to be populated with data but remains None. This prevents the process from moving forward, leading to an environment shutdown.
Steps/commands/code to Reproduce
1. Start the Gradio interface using the command: python3.11 run_gradio.py. 2. Input the following JSON task in the Gradio interface, which is designed to set up server-side login validation:
JSON Task:
3. Submit the task for processing to see how its running on UbuntU WSL.
This is run.py file, run function where the error occurs (the line is bold below):
This is the current swe_env.py file class SWEEnv(gym.Env) along with reset() function, where I have suggested to done possible changes by ChatGPT-4, but still error persists
reset function in SWEEnv class:
,
Error message/results
System Information
Checklist
git pull
anddocker pull sweagent/swe-agent:latest
)