Skip to content

Fail to run the Attach to Python Function configuration in the Local Debugger #2

@jerryshia

Description

@jerryshia

Description
When run the Attach to Python Function configuration in the debugger, it failed due to missing. venv in src folder, but the readme.md does not mention creating a virtual environment. The specific error message is as follows:

Image

Repro steps

  1. Run azd auth login.
  2. Run azd init --template indexadillo.
  3. Run azd env new indexadillo-dev.
  4. Setup local.settings.json file.
  5. Fill out DI_ENDPOINT, AZURE_OPENAI_ENDPOINT, SOURCE_STORAGE_ACCOUNT_NAME, and SEARCH_SERVICE_ENDPOINT with the correct endpoints from the .env file located at .azure/indexadillo-dev/.env.
  6. Launch the Azurite service by using the Azurite: Start command from the VS Code command palette.
  7. In the VS Code debug section, select and run the Attach to Python Function configuration.

Environment

  • Azd version: azd version 1.12.0 (commit dc37b930ef8b80340a510c09a6e657ef5bda4f55)
  • OS: Windows

Expected behavior
Running the debugger Attach to Python function successfully on Windows local

@hemarina and @StromFLIX for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions