Skip to content

Fail to run python3 src/fastapi_app/seed_data.py command #4

@jerryshia

Description

@jerryshia

Describe the issue:
Running python3 src/fastapi_app/seed_data.py reports an error: cold not translate host name "", the. env file has not been configured correctly.
image
image

Repro Steps:

  1. Fork this repository.
  2. Open this repository from Codespace.
  3. Run cp .env.sample .env.
  4. Run python3 -m pip install -r src/requirements.txt.
  5. Run python3 -m pip install -e src.
  6. Run python3 src/fastapi_app/seed_data.py.

Environment:

  • Azd version:azd version 1.9.5 (commit cd2b7af9995d358aab33c782614f801ac1997dde)
  • OS: Windows 11

Expected Behavior:
Run python3 src/fastapi_app/seed_data.py successfully.

@bobtabor-msft and @hemarina for notification.

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