autogen icon indicating copy to clipboard operation
autogen copied to clipboard

FileSurfer in Magentic-One no longer able to find or list files after 0.5.1 update. Keeps returning FileNotFoundError

Open zytoh0 opened this issue 1 year ago • 0 comments

What happened?

Describe the bug After upgrading to python-v0.5.1, FileSurfer can no longer locate or read local files that exist. Attempting to access a simple test folder causes the agent to return FileNotFoundError, despite the folder being valid and files existing and accessible via Explorer or standard Python libraries.

0.4.9 works Image

After 0.5.1 update Image

To Reproduce Steps to reproduce:

  1. Create a folder locally at C:\Users\User\Documents\test
  2. Place any test file inside (e.g., example.txt)
  3. Run the following Magentic-One CLI command: m1 "Ask FileSurfer to find out the contents of this folder: C:\Users\User\Documents\test"
  4. Output:
---------- FileSurfer ----------
Path: C:\Users\User\Documents\test
Title: FileNotFoundError
Viewport position: Showing page 1 of 1.
=======================
# FileNotFoundError

File not found: C:\Users\User\Documents\test

Expected behavior List of files in the directory

Which packages was the bug in?

Python Extensions (autogen-ext)

AutoGen library version.

Python 0.5.1

Other library version.

No response

Model used

qwen2.5-coder:32b-instruct-q2_K

Model provider

Ollama

Other model provider

No response

Python version

3.11

.NET version

None

Operating system

Windows

zytoh0 avatar Apr 07 '25 17:04 zytoh0