-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
RuntimeError: Code execution is set to be run in docker (default behaviour) but docker is not running. #1381
Comments
This is a recent change that was made for safety around code execution, you can see how to disable the default behaviour here if you wish to do so. If you are still having trouble can you please add some code so that we can see where the problem is, and let us know your dev operating system, etc |
Maybe we can add in the doc about disabling code execution entirely, by setting |
Can we just set code execution to be disabled by default? |
This would also be a breaking change; we could consider it for future releases. @sonichi I'll update the documentation |
I just updated to the latest version 0.2.9 and received the error:
even though I had |
Hi @austinhumes-valtech |
Hi @olgavrou thanks for the quick response! I'm using a group chat. Here's some code samples:
Hope that helps! Thanks! |
It only shows the set up for the user proxy, what about the assistant agent? Did you set the Also, I see you are re-registering the generate_code_execution_reply function. You probably want to remove that and only register it depending on whether you are turning on code execution. |
@austinhumes-valtech does this error still occur with the latest version? If so, could you share a little reproducible example? |
I managed to solved this issue adding a "use_docker": False inside the code_execution_config dict like this :
|
Great! this is the intended workaround :) I'll close the issue but feel free to reopen if another issue occurs |
I got RuntimeError: Please ensure Docker is running on your system. |
on the lastest version |
my code is from docker_games import Minecraft minecraft = Minecraft('creepers_go_boom', '2GB', '/home/stefano/mc_data') minecraft.start() |
@g-o-o-g-l-e you need to install docker on your machine |
thanks |
|
Describe the issue
This error appears even when I have no plans to run any code. It is really annoying, and sometimes I can't set my environment variables to get rid of it.
Steps to reproduce
Create agents and run them
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: