agentscope icon indicating copy to clipboard operation
agentscope copied to clipboard

[Bug]: When running the workflow in Studio, error message "ModuleNotFoundError: No module named 'agentscope'" was shown in the terminal

Open NirvanaEric opened this issue 1 year ago • 1 comments

Describe the bug When running the workflow in Studio, error message "ModuleNotFoundError: No module named 'agentscope'" was shown in the terminal, and the workflow failed to run.

Error messages image

Environment (please complete the following information):

  • AgentScope Version: "0.0.6alpha3"
  • Python Version: 3.12
  • Python venv manager: Poetry
  • OS: Windows10

Additional context I tried to modify '_convert_config_to_py_and_run()' in '\agentscope\src\agentscope\studio_app.py' to run the workflow code in created venv. image

Not sure if this is a BUG, or just happened in my evnironment since I use Poetry to manage venv, not virtualenv or conda.

NirvanaEric avatar Aug 05 '24 11:08 NirvanaEric

Please execute which python on your subprocess to make sure the right env is used in agentscope.

rayrayraykk avatar Aug 05 '24 13:08 rayrayraykk