Skip to content

Microsoft Agent Framework Python sample not running. #113

@adner

Description

@adner

Describe the bug
The Python + Agent Framework sample that is part of the VS Code M365 Agents Toolkit extension is not working.

To Reproduce

  • I follow the instructions here for how to set up the sample.
  • uv venv
  • .venv\Scripts\activate
  • uv pip install -e . --prerelease=allow
  • uv run python start_with_generic_host.py

Fails with the following error:

(agent365-agentframework-python) PS C:\temp\Agent365\agent365-agentframework-python> uv run python start_with_generic_host.py
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
error: Could not convert between URL and path
  Caused by: path could not be normalized: C:\temp\Agent365\agent365-agentframework-python\../../../../python/dist
  Caused by: cannot normalize a relative path beyond the base directory: C:\temp\Agent365\agent365-agentframework-python\../../../../python/dist

Expected behavior
The sample code should run.

Environment (please complete the following information):

  • OS: Windows
  • SDK Version [e.g. 1.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions