Azure-Samples / Azure-Samples/msdocs-fastapi-postgresql-sample-app

Fail to run `python3 src/fastapi_app/seed_data.py` command

オープン
#4 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Bicep
スター
11
フォーク
60
平均マージ
1日 18時間
マージ済み PR(30日)
2

説明

**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](https://github.com/user-attachments/assets/a646bdd9-8aa9-4eff-a676-d3abc464bcb2)
![image](https://github.com/user-attachments/assets/a4671ead-3b15-4509-bd57-327866baf6b5)

**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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。