Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Oryx build fails only supporting Python 3.10.x

Open ct-prog opened this issue 8 months ago • 36 comments

Bug Report

  • At what date and time did you most recently experience the problem? Most recently happened on 2026/03/30 07:52 UTC

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Azure functions remote build

  • If your repo is publicly available please share its URL: No.

  • What happened? Oryx build for Python version 3.13 has worked for months, but now I am getting a failed remote build for Azure Functions with Oryx stating that only Python 3.10.x is supported.

  • What did you expect or want to happen? I expected Oryx build on Azure to support platform version Python 3.13.

  • How can we reproduce it? Try deploying an azure function app using oryx build for python 3.13 func azure functionapp publish insert-function-app-name

  • Do you have log output? Please include between the backticks:

Resolving worker runtime to 'python'.
Getting site publishing info...
[2026-03-30T07:51:22.580Z] Starting the function app deployment...
Creating archive for current directory...
Performing remote build for functions project.
Deleting the old .python_packages directory
Uploading 186.09 KB [#############################################################################]
Remote build in progress, please wait...
Updating submodules.
Preparing deployment for commit id '033a582f-d'.
PreDeployment: context.CleanOutputPath False
PreDeployment: context.OutputPath /home/site/wwwroot
Repository path is /tmp/zipdeploy/extracted
Running oryx build...
Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.13 -i /tmp/8de8e31265afc0a -p packagedir=.python_packages/lib/site-packages
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20260204.1+0fdbe200b286be083841ff7fa201c6c2316dc6b9, Commit: 0fdbe200b286be083841ff7fa201c6c2316dc6b9, ReleaseTagName: 20260204.1

Build Operation ID: e50989f6a9bb3c8a
Repository Commit : 033a582f-d111-48a8-8bce-59878209db9b
OS Type           : bullseye
Image Type        : githubactions

Primary SDK Storage URL: https://oryx-cdn.microsoft.io
Backup SDK Storage URL: 
Detecting platforms...
External SDK provider is enabled.
Requesting metadata for platform python from external SDK provider
Requesting metadata for platform python from external SDK provider
Error: Platform 'python' version '3.13' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19
Error: Platform 'python' version '3.13' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.13 -i /tmp/8de8e31265afc0a -p packagedir=.python_packages/lib/site-packages

Generating summary of Oryx build
Deployment Log file does not exist in /tmp/oryx-build.log
The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
Deployment Failed. deployer = Push-Deployer deploymentPath = Functions App ZipDeploy. Extract zip. Remote build.
Remote build failed!

ct-prog avatar Mar 30 '26 07:03 ct-prog

I have the same issue when trying to build with 3.11:

Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19
Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/8de8e33d9e972c3 -p packagedir=.python_packages/lib/site-packages

chauek avatar Mar 30 '26 08:03 chauek

We are experiencing the same issue:

Image

memorisanka avatar Mar 30 '26 08:03 memorisanka

Same issues Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19

Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/8de8e31e5752a26 -p packagedir=.python_packages/lib/site-packages

selsel-crs avatar Mar 30 '26 08:03 selsel-crs

I have the same issue when trying to build with 3.12:

Error: Platform 'python' version '3.12' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19

Oryx Version: 0.2.20260204.1+0fdbe200b286be083841ff7fa201c6c2316dc6b9, Commit: 0fdbe200b286be083841ff7fa201c6c2316dc6b9, ReleaseTagName: 20260204.1

Build Operation ID: cea0c992760d39fc Repository Commit : 1ba11d8f-624d-490d-ab9f-cb60f2890b6f OS Type : bullseye Image Type : githubactions

Location: West Europe App Service Plan: B1: 1 Operating System: Linux

frankwinfaber avatar Mar 30 '26 08:03 frankwinfaber

I have the same issue with python 3.11:

Running oryx build... Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/8de8e36b3ad15a3 -p packagedir=.python_packages/lib/site-packages Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20260204.1+0fdbe200b286be083841ff7fa201c6c2316dc6b9, Commit: 0fdbe200b286be083841ff7fa201c6c2316dc6b9, ReleaseTagName: 20260204.1

Build Operation ID: e5795be38ffac4c3 Repository Commit : a51374fe-88b9-4132-a475-bb7462761e14 OS Type : bullseye Image Type : githubactions

Primary SDK Storage URL: https://oryx-cdn.microsoft.io Backup SDK Storage URL: Detecting platforms... External SDK provider is enabled. Requesting metadata for platform python from external SDK provider Requesting metadata for platform python from external SDK provider Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19 Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/8de8e36b3ad15a3 -p packagedir=.python_packages/lib/site-packages

Generating summary of Oryx build Deployment Log file does not exist in /tmp/oryx-build.log The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build Deployment Failed. deployer = Push-Deployer deploymentPath = Functions App ZipDeploy. Extract zip. Remote build. Remote build failed!

thamthang avatar Mar 30 '26 08:03 thamthang

I have the same problem rn, the WebApp is on python 3.12

Image

SvenNoir avatar Mar 30 '26 08:03 SvenNoir

I was able to temporarily mitigate the issue by using local build:

pip install -r requirements.txt --target=".python_packages/lib/site-packages" func azure functionapp publish <Your-App-Name> --python --no-build

saadalia avatar Mar 30 '26 08:03 saadalia

Same Problem for me

jniemeyer-gasag avatar Mar 30 '26 08:03 jniemeyer-gasag

same problem. Was working till 10:36

Image

PowerSoftbi avatar Mar 30 '26 09:03 PowerSoftbi

same issue: { "log_time": "2026-03-30T08:56:28.8249967Z", "id": "", "message": "Error: Platform 'python' version '3.12' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19", "type": 1, "details_url": null },

stokuri avatar Mar 30 '26 09:03 stokuri

Same issue

Seems vibe code is going to prod nowdays

yashgandhi-32 avatar Mar 30 '26 09:03 yashgandhi-32

We're actively investigating this as a priority and will post updates on this issue as we make progress.

surenderssm avatar Mar 30 '26 09:03 surenderssm

We have same trouble here, since today ...

[
{"log_time":"2026-03-30 ... "message":"Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/... -p packagedir=.python_packages/lib/site-packages","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"You can report issues at https://github.com/Microsoft/Oryx/issues","type":0,"details_url":null},
...
{"log_time":"2026-03-30 ... "message":"Oryx Version: 0.2.20260204.1+0fdbe200b286be083841ff7fa201c6c2316dc6b9, Commit: 0fdbe200b286be083841ff7fa201c6c2316dc6b9, ReleaseTagName: 20260204.1","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"OS Type           : bullseye","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Primary SDK Storage URL: https://oryx-cdn.microsoft.io","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Backup SDK Storage URL: ","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Detecting platforms...","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"External SDK provider is enabled.","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Requesting metadata for platform python from external SDK provider","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Requesting metadata for platform python from external SDK provider","type":0,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19","type":1,"details_url":null},
{"log_time":"2026-03-30 ... "message":"Error: Platform 'python' version '3.11' is unsupported. Supported versions: 3.10.0, 3.10.0a2, 3.10.13, 3.10.14, 3.10.15, 3.10.16, 3.10.17, 3.10.18, 3.10.19\\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.11 -i /tmp/... -p packagedir=.python_packages/lib/site-packages","type":2,"details_url":null}
]

ManuVerl avatar Mar 30 '26 10:03 ManuVerl

ORYX_ENABLE_EXTERNAL_SDK_PROVIDER=false

Image

Adding the environment variable will resolve the build issue temporarily

Image

saadalia avatar Mar 30 '26 10:03 saadalia

Set an application setting (environment variable) on the same App Service that receives the deploy:

Name | Value -- | -- ORYX_ENABLE_EXTERNAL_SDK_PROVIDER | false

Azure Portal (current UI)

  1. Azure Portal → your App Service.
  2. Settings → Environment variables.
  3. Open the App settings tab (application settings; not “Connection strings” unless you use that blade only).
  4. Add → name ORYX_ENABLE_EXTERNAL_SDK_PROVIDER, value false.
  5. Save / Apply, then Restart the app (Overview → Restart, or equivalent).

Note: Some tenants still show Configuration → Application settings; it configures the same app settings.

Azure CLI

az webapp config appsettings set \
--resource-group <RESOURCE_GROUP> \
--name <APP_NAME> \
--settings ORYX_ENABLE_EXTERNAL_SDK_PROVIDER=false
az webapp restart --resource-group <RESOURCE_GROUP> --name <APP_NAME>

Redeploy after restart.


Why this works

  • true: Oryx uses the external provider’s version list → in the failure case, 3.12 / 3.11 is missing from that list for your build.
  • false: Oryx uses the embedded SDK catalog in the build image, which aligns with the configured Python stack so the build can proceed.

ankit9aur avatar Mar 30 '26 10:03 ankit9aur

Set an application setting (environment variable) on the same App Service that receives the deploy:

Name | Value -- | -- ORYX_ENABLE_EXTERNAL_SDK_PROVIDER | false

Azure Portal (current UI)

  1. Azure Portal → your App Service.
  2. Settings → Environment variables.
  3. Open the App settings tab (application settings; not “Connection strings” unless you use that blade only).
  4. Add → name ORYX_ENABLE_EXTERNAL_SDK_PROVIDER, value false.
  5. Save / Apply, then Restart the app (Overview → Restart, or equivalent).

Note: Some tenants still show Configuration → Application settings; it configures the same app settings.

Azure CLI

az webapp config appsettings set
--resource-group <RESOURCE_GROUP>
--name <APP_NAME>
--settings ORYX_ENABLE_EXTERNAL_SDK_PROVIDER=false az webapp restart --resource-group <RESOURCE_GROUP> --name <APP_NAME> Redeploy after restart.

Why this works

  • true: Oryx uses the external provider’s version list → in the failure case, 3.12 / 3.11 is missing from that list for your build.
  • false: Oryx uses the embedded SDK catalog in the build image, which aligns with the configured Python stack so the build can proceed.

This actually works! AI wins!

sweco-se1c1d avatar Mar 30 '26 11:03 sweco-se1c1d

ORYX_ENABLE_EXTERNAL_SDK_PROVIDER=false

Image Adding the environment variable will resolve the build issue temporarily Image

Bit late, but Thanks @saadalia

dd-krish avatar Mar 30 '26 11:03 dd-krish

@ankit9aur Worked for me too. Thanks!

GeorgeRomaiosMeazon avatar Mar 30 '26 12:03 GeorgeRomaiosMeazon

Error: Couldn't detect a version for the platform 'python' in the repo.\n/bin/bash -c "oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.10 -p virtualenv_name=antenv --log-file /tmp/build-debug.log -i /tmp/8de8e547d122d29 --compress-destination-dir | tee /tmp/oryx-build.log ; exit $PIPESTATUS "

Deployment Failed. deployer = ms-azuretools-vscode deploymentPath = ZipDeploy. Extract zip. Remote build. Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.10 -p virtualenv_name=antenv --log-file /tmp/build-debug.log -i /tmp/8de8e547d122d29 --compress-destination-dir | tee /tmp/oryx-build.log Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20260204.1+0fdbe200b286be083841ff7fa201c6c2316dc6b9, Commit: 0fdbe200b286be083841ff7fa201c6c2316dc6b9, ReleaseTagName: 20260204.1

Build Operation ID: 19c972a98528ac3e Repository Commit : 5bde2d40-9a13-4c52-b00c-997eda41c015 OS Type : bullseye Image Type : githubactions

Primary SDK Storage URL: https://oryx-cdn.microsoft.io Error: Couldn't detect a version for the platform 'python' in the repo.** Backup SDK Storage URL: Detecting platforms... External SDK provider is enabled. Could not detect any platform in the source directory. Error: Couldn't detect a version for the platform 'python' in the repo.\n/bin/bash -c "oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.10 -p virtualenv_name=antenv --log-file /tmp/build-debug.log -i /tmp/8de8e547d122d29 --compress-destination-dir | tee /tmp/oryx-build.log ; exit $PIPESTATUS "

pmovershield avatar Mar 30 '26 12:03 pmovershield

@saadalia solution worked for me

ORYX_ENABLE_EXTERNAL_SDK_PROVIDER=false Image

Adding the environment variable will resolve the build issue temporarily Image

Imaginarybandit avatar Mar 30 '26 12:03 Imaginarybandit