Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Ran a Python command #6424

Open
1 task done
j3TO opened this issue Jan 23, 2025 · 3 comments
Open
1 task done

[Bug]: Ran a Python command #6424

j3TO opened this issue Jan 23, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@j3TO
Copy link

j3TO commented Jan 23, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

Hi, I'm not very knowledgeable about programming and OpenHands in general, so I apologize in advance if there is some easy solution to this or something. I'm trying to make a website, nothing serious, but constantly as the chat bot tries to run “Ran a Python command”, an error (X) keeps popping up and ERROR text everywhere:
No replacement was performed, old_str `<script> and then comes the code it wrote. If he uses “Ran a bash command
“ or “Read/Edited the contents of a file”, everything is fine, the problem is only in Python command.

OpenHands Installation

Docker command in README

OpenHands Version

0.21

Operating System

WSL on Windows

Logs, Errors, Screenshots, and Additional Context

Image

@j3TO j3TO added the bug Something isn't working label Jan 23, 2025
@enyst
Copy link
Collaborator

enyst commented Jan 23, 2025

It's possible that it's a bug somewhere, but it's also possible that the model you're using doesn't work very well. So we should figure out and eliminate that possibility first. What model are you using?

openhands works much better with powerful models, like Claude Sonnet 3.5.

@j3TO
Copy link
Author

j3TO commented Jan 23, 2025

I use DeepSeek

@enyst
Copy link
Collaborator

enyst commented Jan 23, 2025

@j3TO Just to note, it's normally not a problem that the agent runs commands that give an error: if the model makes a mistake (and they do, all of them!), then openhands gives an error back. The model will receive the error, and has a chance to correct itself next time.

Can you please share the history with the errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants