Azure-Samples / rag-postgres-openai-python

A RAG app to ask questions about rows in a database table. Deployable on Azure Container Apps with PostgreSQL Flexible Server.
MIT License
263 stars 132 forks source link

Run `azd up` fails in Windows #72

Closed NanaXiong00 closed 3 months ago

NanaXiong00 commented 3 months ago

Describe the issue: When executing azd up according to README.md, the error is as follows: image

Repro Steps:

  1. Download the project code: azd init -t rag-postgres-openai-python
  2. Install required Python packages: pip install -r requirements-dev.txt
  3. Run azd auth login
  4. Run azd up

Environment:

Expected behavior: Run azd up can successfully.

@jongio and @pamelafox for notification.

pamelafox commented 3 months ago

Thanks, the instructions were missing an installation step:

https://github.com/Azure-Samples/rag-postgres-openai-python/blob/main/README.md#local-environment

I've changed step 4 to:

pip install -r requirements-dev.txt pip install -e src/backend

Can you try that?

NanaXiong00 commented 3 months ago

@pamelafox Follow the above reply steps to test, and the following error message is still displayed: image image

pamelafox commented 3 months ago

I've merged another fix that changes the powershell scripts to use azd env get-value. That requires the latest azd version, so I've also added requiredVersions to the azure.yaml to remind folks to upgrade. I've tested the new pwsh scripts on my Mac, but not on a Windows itself. Can you see if it's working for you now?

NanaXiong00 commented 3 months ago

I've merged another fix that changes the powershell scripts to use azd env get-value. That requires the latest azd version, so I've also added requiredVersions to the azure.yaml to remind folks to upgrade. I've tested the new pwsh scripts on my Mac, but not on a Windows itself. Can you see if it's working for you now?

Based on the latest code tested in Windows environment, the above problems have been fixed.

pamelafox commented 3 months ago

Great!