-
Notifications
You must be signed in to change notification settings - Fork 5k
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
"Executor" agent isn't installing missing modules - Magentic One #4240
Comments
I have noticed this issue as well quite a few times as well, it is because the code passed to the Executor is not in a shell script to install and so it fails. The few times I see it succeeding is when the Orchestrator fixes the script to install to the Executor. It is something we need to fix in Magentic-One. A temporary fix I use is to pre-install packages to in my local environment or on start-up and have it run. Potentially this could be addressed by fixing the system prompt of the Coder or with a smarter Executor agent. |
In my use case, the coder was writing a script that needed the
My Dockerfile (not the most efficient Dockerfile structure, but hey, it was a test, and it worked first shot)
|
@husseinmozannar @bgeesaman |
I created that Dockerfile in a separate directory and built the image locally named
(note the trailing period to mean the build context is the current directory) in that directory where the Dockerfile was present. |
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 whenExecutor
agent tried to execute the code, it failed due to "missing modules" such asselenium
andwebdriver-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:
python examples/example.py --logs_dir ./logs --hil_mode
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.
Coder
agent writes the code in SeleniumExecutor
tries to execute the code that uses external modules and returns errors if any are missingAutoGen 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
The text was updated successfully, but these errors were encountered: