aspire-samples
aspire-samples copied to clipboard
Fail to run `azd init` for sample `AspireWithPython`
Describe the issue:
For AspireWithPython sample, run the azd init command failed and the error message is as follows:
Repro Steps:
- Clone code.
- Run command
cd samples/AspireWithPython. - Run command
azd init.
Environment:
- Azd version:
azd version 1.10.0-beta.1-daily.4077837 (commit a17935e47211ed01780281974c6d63b467de5b14). - Aspire version:
8.2.0/8.0.100. - Sample: AspireWithPython.
- Branch: main.
Expected behavior:
azd init command can be executed successfully.
@rajeshkamal5050, @vhvb1989 for notification.
Do you have Python installed?
Do you have Python installed?
Yes, we have installed Python and this problem still exists.
I'm not familiar with Python or the .venv directory and virtual environments. @mitchdenny any idea on this one?
Did you initialize the .venv folder? We don't do that for you.
https://learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-python?tabs=bash#prepare-a-python-project
Did you initialize the .venv folder? We don't do that for you.
https://learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-python?tabs=bash#prepare-a-python-project
I have initialized the .venv folder, but there is still this issue:
@rajeshkamal5050, @vhvb1989 In the latest round of azd manual testing, this issue still exists.
- Azd version: azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba7dcc5b3f7e883213a2315a8b275294def).
- Aspire version:
8.2.1/8.0.100. - Sample: AspireWithPython.
- Branch: main.
The python sample has been updated to auto-initialize the virtual environment and auto-restore pip dependencies as part of #520. Another PR was merged yesterday that makes the sample deployable using azd (#533). Note that the samples have been updated to Aspire 9.0-rc.1 since this issue was originally logged.