Skip to content
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

Magentic One Interface docker code executor import error #4450

Closed
sayanghosh123 opened this issue Dec 2, 2024 · 2 comments
Closed

Magentic One Interface docker code executor import error #4450

sayanghosh123 opened this issue Dec 2, 2024 · 2 comments

Comments

@sayanghosh123
Copy link

What happened?

I am trying to get the sample interface at https://github.com/microsoft/autogen/blob/main/python/packages/autogen-magentic-one/interface/example_magentic_one_helper.py to work

Note - I have Magentic working on my DevBox, i.e. I can run https://github.com/microsoft/autogen/blob/main/python/packages/autogen-magentic-one/examples/example.py. I've managed to do all the pip installs inside Autogen as per the main Readme of Magentic

(python) PS C:\Code\Autogen\python\packages\autogen-magentic-one> python .\interface\example_magentic_one_helper.py
Traceback (most recent call last):
File "C:\Code\Autogen\python\packages\autogen-magentic-one\interface\example_magentic_one_helper.py", line 1, in
from magentic_one_helper import MagenticOneHelper
File "C:\Code\Autogen\python\packages\autogen-magentic-one\interface\magentic_one_helper.py", line 14, in
from autogen_ext.code_executor.docker_executor import DockerCommandLineCodeExecutor
ModuleNotFoundError: No module named 'autogen_ext.code_executor'

What did you expect to happen?

I was hoping the example interface would provide me with a graphical view similar to the 4 videos posted with the initial blog.

How can we reproduce it (as minimally and precisely as possible)?

python .\interface\example_magentic_one_helper.py

AutoGen version

0.4.0.dev8

Which package was this bug in

Magentic One

Model used

GPT-4o

Python version

Python 3.12.7

Operating system

OS Name Microsoft Windows 11 Enterprise N Version 10.0.26100 Build 26100

Any additional info you think would be helpful for fixing this bug

No response

@ekzhu
Copy link
Collaborator

ekzhu commented Dec 2, 2024

This in https://github.com/microsoft/autogen/blob/main/python/packages/autogen-magentic-one/interface/example_magentic_one_helper.py

from autogen_ext.code_executor.docker_executor import DockerCommandLineCodeExecutor

Should be updated to:

from autogen_ext.code_executors import DockerCommandLineCodeExecutor

And after #4410 is completed, it should be updated to:

from autogen_ext.code_executors.docker import DockerCommandLineCodeExecutor

@husseinmozannar @lspinheiro for awareness.

@ekzhu ekzhu added this to the 0.4.0 milestone Dec 2, 2024
@ekzhu ekzhu changed the title Magentic One Interface - Sample provided Magentic One Interface docker code executor import error Dec 2, 2024
@ekzhu
Copy link
Collaborator

ekzhu commented Jan 6, 2025

Fixed. @sayanghosh123

@ekzhu ekzhu closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants