Skip to content

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

@zytoh0

Description

@zytoh0

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions