Originally created by @HeShen-1 on GitHub (Aug 3, 2025).
If you encounter an error while running the project: "ImportError: cannot import name 'SwarmAgent' from 'autogen', or other file import errors, you can try my method.
First, there are the following points that need to be done:
Execute the command "pip install -r requirements.txt" in the corresponding terminal environment.
Change the variable name UPDATESYSTEMMESSAGE to UpdateSystemMessage.
Run streamlit run game_design_agent_team.py.
Originally created by @HeShen-1 on GitHub (Aug 3, 2025).
If you encounter an error while running the project: "ImportError: cannot import name 'SwarmAgent' from 'autogen', or other file import errors, you can try my method.
First, there are the following points that need to be done:
1. Execute the command "pip install -r requirements.txt" in the corresponding terminal environment.
2. Modify the contents of the header file import
```python
from autogen.agentchat.contrib.swarm_agent import (
SwarmAgent,
SwarmResult,
initiate_swarm_chat,
OpenAIWrapper,
AFTER_WORK,
)
from autogen import UpdateSystemMessage
```
3. Change the variable name `UPDATESYSTEMMESSAGE` to `UpdateSystemMessage`.
4. Run `streamlit run game_design_agent_team.py`.
Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much
@elif2025 commented on GitHub (Sep 11, 2025):
Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much
Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much
Clone the repository to your local machine. Each app has a detailed README.md file and the corresponding requirements.txt file (the one I used is the requirements.txt file in the repository). I hope these will be helpful to you. (Over the past few months, I'm not sure if my approach is still effective.)
@HeShen-1 commented on GitHub (Sep 11, 2025):
> Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much
Clone the repository to your local machine. Each app has a detailed README.md file and the corresponding requirements.txt file (the one I used is the requirements.txt file in the repository). I hope these will be helpful to you. (Over the past few months, I'm not sure if my approach is still effective.)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @HeShen-1 on GitHub (Aug 3, 2025).
If you encounter an error while running the project: "ImportError: cannot import name 'SwarmAgent' from 'autogen', or other file import errors, you can try my method.
First, there are the following points that need to be done:
UPDATESYSTEMMESSAGEtoUpdateSystemMessage.streamlit run game_design_agent_team.py.@elif2025 commented on GitHub (Sep 11, 2025):
Can you please give a working, full requirements.txt? I believe somethings have changed since August. Thank you so much
@HeShen-1 commented on GitHub (Sep 11, 2025):
Clone the repository to your local machine. Each app has a detailed README.md file and the corresponding requirements.txt file (the one I used is the requirements.txt file in the repository). I hope these will be helpful to you. (Over the past few months, I'm not sure if my approach is still effective.)