Description
What happened?
Hi, I've recently noticed that when I asked Magentic One to scrape the dynamic content on the certain page where the context is being loaded dynamically by scrolling down. The Coder
agent has written the code that uses Selenium and I didn't have it installed before running the script, so when Executor
agent tried to execute the code, it failed due to "missing modules" such as selenium
and webdriver-manager
based on the .
I got into a loop where the AI-Agent tried to install the necessary modules, but it constantly failed and therefore attempts of executing code were pointless.
What did you expect to happen?
I expected Executor
to install dependencies that were identified as missing into an active virtual environment to fulfill my query.
How can we reproduce it (as minimally and precisely as possible)?
To reproduce the issue, I am talking about, please follow the steps below:
- Run the example with human-in-the-loop mode:
python examples/example.py --logs_dir ./logs --hil_mode
- Use the next prompt:
Your task is to scrape all the submissions card titles on this page: [[3D Chess Design Contest](https://www.tripo3d.ai/event/3d-chess-contest#submissions)](https://www.tripo3d.ai/event/3d-chess-contest#submissions). Note: the new submissions are loaded dynamically, so you need to first scroll up to down of the page and only then scrape the data or do it dynamically, up to you (decide what’s easier and more efficient).You need to provide me with a full list of scraped submissions card titles.
- Observe the
Coder
agent writes the code in Selenium - Watch the
Executor
tries to execute the code that uses external modules and returns errors if any are missing
AutoGen version
0.2.38
Which package was this bug in
Magentic One
Model used
gpt-4o
Python version
3.12
Operating system
Windows 11
Any additional info you think would be helpful for fixing this bug
I have attached the full logs copied from the terminal, so you can understand the situation better and perhaps help me resolve the issue with AI-Agent isn't installing modules. Failed to install missing modules logs file