Couldn't detect a version for the platform 'python' in the repo
Bug Report
Hi
I'm stuck and won't get any further as I've tried several different suggestions, but in VS Code I still get the furthest (tested via git and azure cli, but was stopped by other permission reasons)
Hope I can get help here.........
I have a Azure Web App that have stack setting as Python and version 3.10 (using Flask) I´m using Visual Studio Code and extensions Azure App Service
I have (first time i´m doing this) cloned https://github.com/Azure-Samples/msdocs-python-flask-webapp-quickstart via Quickstart: Deploy a Python (Django or Flask) web app to Azure App Service to my virtual environment
I have after reading several forums (Stack Overflow, GitHub and etc) following Application setting (does not seem to help anyway)this is my Application settings :
DISABLE_HUGO_BUILD and Value false DISABLE_PYTHON_BUILD and Value true ENABLE_ORYX_BUILD and Value false SCM_DO_BUILD_DURING_DEPLOYMENT and Value 1
When i have setup the Virtual environment from the start and tested it, it works perfect
But when i try to Deploy to my Web App and from Visual Studio Code and Extension Azure App Service it gives following error: (As i said above, i did read several forums and for example added text file runtime.txt with Python python-3.10. Also in the requirements.txt it is Flask==2.0.2 and gunicorn)
Here is the Log Output:
6:54:04 PM: WARNING: Ignoring deploySubPath "" for non-zip deploy. 6:54:04 PM: Starting deployment... 6:54:06 PM: Deploying Local Git repository to "astrozeropicking"... 9:47:28 PM: Updating branch 'master'. 9:47:29 PM: Updating submodules. 9:47:29 PM: Preparing deployment for commit id '6a9b078424'. 9:47:30 PM: PreDeployment: context.CleanOutputPath False 9:47:30 PM: PreDeployment: context.OutputPath /home/site/wwwroot 9:47:30 PM: Repository path is /home/site/repository 9:47:30 PM: Running oryx build... 9:47:30 PM: Command: oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.10 -p virtualenv_name=antenv --log-file /tmp/build-debug.log -i /tmp/8dbed2e93723caa --compress-destination-dir | tee /tmp/oryx-build.log 9:47:33 PM: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx 9:47:34 PM: You can report issues at https://github.com/Microsoft/Oryx/issues 9:47:34 PM: Oryx Version: 0.2.20230508.1, Commit: 7fe2bf39b357dd68572b438a85ca50b5ecfb4592, ReleaseTagName: 20230508.1 9:47:34 PM: Build Operation ID: 9fee709170246ba4 9:47:34 PM: Repository Commit : 6a9b07842463a6295a9f03443706780863700682 9:47:34 PM: OS Type : bullseye 9:47:34 PM: Image Type : githubactions 9:47:34 PM: Detecting platforms... 9:47:35 PM: Could not detect any platform in the source directory. 9:47:35 PM: Error: Couldn't detect a version for the platform 'python' in the repo. 9:47:37 PM: /bin/bash -c "oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.10 -p virtualenv_name=antenv --log-file /tmp/build-debug.log -i /tmp/8dbed2e93723caa --compress-destination-dir | tee /tmp/oryx-build.log ; exit $PIPESTATUS " 9:47:37 PM: Generating summary of Oryx build 9:47:37 PM: Parsing the build logs 9:47:38 PM: Found 0 issue(s) 9:47:38 PM: Build Summary : 9:47:38 PM: =============== 9:47:38 PM: Errors (0) 9:47:38 PM: Warnings (0) 9:47:39 PM: Deployment Failed. deployer = deploymentPath = 6:54:15 PM: Deployment failed.
Just to be extra transparent, I'm pasting a view from my virtual environment (don´t know if that helps, but anyway)
@XVItokaz thanks for raising this issue with us. Your file structure looks good. Is this root location the same you are using to upload as well? Also, why are you choosing to set DISABLE_PYTHON_BUILD=1 this would indicate that you don't want to build a Python app as per: https://github.com/microsoft/Oryx/blob/main/doc/configuration.md.