Skip to content

Getting "Running Scripts is Disabled on this System" on windows with use_docker set to False #166

@mrauter1

Description

@mrauter1

Hello,

Apparently running scripts in powershell is disabled by default on Windows, so when the UserProxyAgent tries to execute a shell script this error occur.

Code to reproduce:
from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")
assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False})
user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")

The error will happen when the agent attempts a shell execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions