You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has to be possible to test for future python releases in the pipeline. The manifest.json has 3.13listed as beta.
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
any
Relevant log output
##[error]Failed to download Python from the Github Actions python registry (https://github.com/actions/python-versions). Error: Error: Could not find Python matching spec 3.13 (x64) in the python-versions registry. Beware that only systems listed in the Github Actions python versions manifest (https://github.com/actions/python-versions/blob/main/versions-manifest.json) are fit for downloading python on-flight. Also, proxy is not supported.
Full task logs with system.debug enabled
2024-05-31T09:39:29.7317984Z ##[debug]Evaluating condition for step: 'UsePythonVersion'
2024-05-31T09:39:29.7372209Z ##[debug]Evaluating: SucceededNode()
2024-05-31T09:39:29.7378758Z ##[debug]Evaluating SucceededNode:
2024-05-31T09:39:29.7421338Z ##[debug]=> True
2024-05-31T09:39:29.7431041Z ##[debug]Result: True
2024-05-31T09:39:29.7504169Z ##[section]Starting: UsePythonVersion
2024-05-31T09:39:29.7720937Z ==============================================================================
2024-05-31T09:39:29.7721484Z Task : Use Python version
2024-05-31T09:39:29.7721794Z Description : Use the specified version of Python from the tool cache, optionally adding it to the PATH
2024-05-31T09:39:29.7721979Z Version : 0.235.1
2024-05-31T09:39:29.7722485Z Author : Microsoft Corporation
2024-05-31T09:39:29.7722867Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/use-python-version
2024-05-31T09:39:29.7723039Z ==============================================================================
2024-05-31T09:39:29.9899536Z ##[debug]Using node path: /home/vsts/agents/3.239.1/externals/node20_1/bin/node
2024-05-31T09:39:30.1402766Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2024-05-31T09:39:30.1405637Z ##[debug]loading inputs and endpoints
2024-05-31T09:39:30.1406176Z ##[debug]loading INPUT_VERSIONSPEC
2024-05-31T09:39:30.1406949Z ##[debug]loading INPUT_DISABLEDOWNLOADFROMREGISTRY
2024-05-31T09:39:30.1407460Z ##[debug]loading INPUT_ALLOWUNSTABLE
2024-05-31T09:39:30.1407935Z ##[debug]loading INPUT_ADDTOPATH
2024-05-31T09:39:30.1408407Z ##[debug]loading INPUT_ARCHITECTURE
2024-05-31T09:39:30.1408917Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-05-31T09:39:30.1409444Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-05-31T09:39:30.1409993Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-05-31T09:39:30.1410520Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2024-05-31T09:39:30.1410989Z ##[debug]loaded 9
2024-05-31T09:39:30.1411430Z ##[debug]Agent.ProxyUrl=undefined
2024-05-31T09:39:30.1411911Z ##[debug]Agent.CAInfo=undefined
2024-05-31T09:39:30.1412382Z ##[debug]Agent.ClientCert=undefined
2024-05-31T09:39:30.1412865Z ##[debug]Agent.SkipCertValidation=undefined
2024-05-31T09:39:30.1804318Z ##[debug]Agent.ProxyUrl=undefined
2024-05-31T09:39:30.1809832Z ##[debug]Agent.CAInfo=undefined
2024-05-31T09:39:30.1815797Z ##[debug]Agent.ClientCert=undefined
2024-05-31T09:39:30.1821735Z ##[debug]check path : /home/vsts/work/_tasks/UsePythonVersion_33c63b11-352b-45a2-ba1b-54cb568a29ca/0.235.1/node_modules/azure-pipelines-tool-lib/lib.json
2024-05-31T09:39:30.1827620Z ##[debug]adding resource file: /home/vsts/work/_tasks/UsePythonVersion_33c63b11-352b-45a2-ba1b-54cb568a29ca/0.235.1/node_modules/azure-pipelines-tool-lib/lib.json
2024-05-31T09:39:30.1831978Z ##[debug]system.culture=en-US
2024-05-31T09:39:30.1865148Z ##[debug]check path : /home/vsts/work/_tasks/UsePythonVersion_33c63b11-352b-45a2-ba1b-54cb568a29ca/0.235.1/task.json
2024-05-31T09:39:30.1865942Z ##[debug]adding resource file: /home/vsts/work/_tasks/UsePythonVersion_33c63b11-352b-45a2-ba1b-54cb568a29ca/0.235.1/task.json
2024-05-31T09:39:30.1866529Z ##[debug]system.culture=en-US
2024-05-31T09:39:30.1872285Z ##[debug]versionSpec=3.13
2024-05-31T09:39:30.1873378Z ##[debug]disableDownloadFromRegistry=false
2024-05-31T09:39:30.1877665Z ##[debug]allowUnstable=true
2024-05-31T09:39:30.1879431Z ##[debug]addToPath=true
2024-05-31T09:39:30.1882929Z ##[debug]architecture=x64
2024-05-31T09:39:30.1883559Z ##[debug]githubToken=undefined
2024-05-31T09:39:30.1885583Z ##[debug]Semantic version spec of 3.13 is 3.13
2024-05-31T09:39:30.1918116Z ##[debug]isExplicit: null
2024-05-31T09:39:30.1918600Z ##[debug]explicit? false
2024-05-31T09:39:30.1919054Z ##[debug]Agent.Version=3.239.1
2024-05-31T09:39:30.1919522Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache
2024-05-31T09:39:30.1949608Z ##[debug]isExplicit: 3.10.14
2024-05-31T09:39:30.1950088Z ##[debug]explicit? true
2024-05-31T09:39:30.1950579Z ##[debug]isExplicit: 3.11.9
2024-05-31T09:39:30.1951326Z ##[debug]explicit? true
2024-05-31T09:39:30.1951758Z ##[debug]isExplicit: 3.12.3
2024-05-31T09:39:30.1952202Z ##[debug]explicit? true
2024-05-31T09:39:30.1952682Z ##[debug]isExplicit: 3.7.17
2024-05-31T09:39:30.1953141Z ##[debug]explicit? true
2024-05-31T09:39:30.1953572Z ##[debug]isExplicit: 3.8.18
2024-05-31T09:39:30.1954260Z ##[debug]explicit? true
2024-05-31T09:39:30.1954740Z ##[debug]isExplicit: 3.9.19
2024-05-31T09:39:30.1955185Z ##[debug]explicit? true
2024-05-31T09:39:30.1955618Z ##[debug]evaluating 6 versions
2024-05-31T09:39:30.1968329Z ##[debug]match not found
2024-05-31T09:39:30.1968851Z ##[debug]Could not find a local python installation matching 3.13.
2024-05-31T09:39:30.1969370Z ##[debug]Trying to download python from registry.
2024-05-31T09:39:30.2005922Z ##[warning]You should provide GitHub token if you want to download a python release. Otherwise you may hit the GitHub anonymous download limit.
2024-05-31T09:39:30.2012938Z ##[debug]Processed: ##vso[task.issue type=warning;]You should provide GitHub token if you want to download a python release. Otherwise you may hit the GitHub anonymous download limit.
2024-05-31T09:39:30.2013966Z ##[debug]Downloading manifest
2024-05-31T09:39:30.3368460Z ##[error]Failed to download Python from the Github Actions python registry (https://github.com/actions/python-versions). Error: Error: Could not find Python matching spec 3.13 (x64) in the python-versions registry. Beware that only systems listed in the Github Actions python versions manifest (https://github.com/actions/python-versions/blob/main/versions-manifest.json) are fit for downloading python on-flight. Also, proxy is not supported.
2024-05-31T09:39:30.3370211Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to download Python from the Github Actions python registry (https://github.com/actions/python-versions). Error: Error: Could not find Python matching spec 3.13 (x64) in the python-versions registry. Beware that only systems listed in the Github Actions python versions manifest (https://github.com/actions/python-versions/blob/main/versions-manifest.json) are fit for downloading python on-flight. Also, proxy is not supported.
2024-05-31T09:39:30.3371779Z ##[debug]Agent.Version=3.239.1
2024-05-31T09:39:30.3372296Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache
2024-05-31T09:39:30.3372901Z ##[debug]isExplicit: 3.10.14
2024-05-31T09:39:30.3373356Z ##[debug]explicit? true
2024-05-31T09:39:30.3373788Z ##[debug]isExplicit: 3.11.9
2024-05-31T09:39:30.3374238Z ##[debug]explicit? true
2024-05-31T09:39:30.3374684Z ##[debug]isExplicit: 3.12.3
2024-05-31T09:39:30.3375479Z ##[debug]explicit? true
2024-05-31T09:39:30.3375929Z ##[debug]isExplicit: 3.7.17
2024-05-31T09:39:30.3376374Z ##[debug]explicit? true
2024-05-31T09:39:30.3376804Z ##[debug]isExplicit: 3.8.18
2024-05-31T09:39:30.3377250Z ##[debug]explicit? true
2024-05-31T09:39:30.3377695Z ##[debug]isExplicit: 3.9.19
2024-05-31T09:39:30.3378133Z ##[debug]explicit? true
2024-05-31T09:39:30.3378563Z ##[debug]Agent.Version=3.239.1
2024-05-31T09:39:30.3379051Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache
2024-05-31T09:39:30.3379532Z ##[debug]isExplicit: 3.10.14
2024-05-31T09:39:30.3379976Z ##[debug]explicit? true
2024-05-31T09:39:30.3380416Z ##[debug]isExplicit: 3.11.9
2024-05-31T09:39:30.3380844Z ##[debug]explicit? true
2024-05-31T09:39:30.3381284Z ##[debug]isExplicit: 3.12.3
2024-05-31T09:39:30.3381724Z ##[debug]explicit? true
2024-05-31T09:39:30.3382165Z ##[debug]isExplicit: 3.7.17
2024-05-31T09:39:30.3382594Z ##[debug]explicit? true
2024-05-31T09:39:30.3383036Z ##[debug]isExplicit: 3.8.18
2024-05-31T09:39:30.3383484Z ##[debug]explicit? true
2024-05-31T09:39:30.3383930Z ##[debug]isExplicit: 3.9.19
2024-05-31T09:39:30.3384358Z ##[debug]explicit? true
2024-05-31T09:39:30.3384828Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache
2024-05-31T09:39:30.3385302Z ##[debug]task result: Failed
2024-05-31T09:39:30.3386864Z ##[error]Version spec 3.13 for architecture x64 did not match any version in Agent.ToolsDirectory.
Versions in /opt/hostedtoolcache:
3.10.14 (x64)
3.11.9 (x64)
3.12.3 (x64)
3.7.17 (x64)
3.8.18 (x64)
3.9.19 (x64)
If this is a Microsoft-hosted agent, check that this image supports side-by-side versions of Python at https://aka.ms/hosted-agent-software.
If this is a self-hosted agent, see how to configure side-by-side Python versions at https://go.microsoft.com/fwlink/?linkid=871498.
2024-05-31T09:39:30.3388469Z ##[debug]Processed: ##vso[task.issue type=error;]Version spec 3.13 for architecture x64 did not match any version in Agent.ToolsDirectory.
Versions in /opt/hostedtoolcache:
3.10.14 (x64)
3.11.9 (x64)
3.12.3 (x64)
3.7.17 (x64)
3.8.18 (x64)
3.9.19 (x64)
If this is a Microsoft-hosted agent, check that this image supports side-by-side versions of Python at https://aka.ms/hosted-agent-software.
If this is a self-hosted agent, see how to configure side-by-side Python versions at https://go.microsoft.com/fwlink/?linkid=871498.
2024-05-31T09:39:30.3414834Z ##[debug]Processed: ##vso[task.complete result=Failed;]Version spec 3.13 for architecture x64 did not match any version in Agent.ToolsDirectory.
Versions in /opt/hostedtoolcache:
3.10.14 (x64)
3.11.9 (x64)
3.12.3 (x64)
3.7.17 (x64)
3.8.18 (x64)
3.9.19 (x64)
If this is a Microsoft-hosted agent, check that this image supports side-by-side versions of Python at https://aka.ms/hosted-agent-software.
If this is a self-hosted agent, see how to configure side-by-side Python versions at https://go.microsoft.com/fwlink/?linkid=871498.
2024-05-31T09:39:30.3492567Z ##[section]Finishing: UsePythonVersion
Hi - that is working fine. Thanks!
I had hoped that 3.13 would just default to the newest prerelease. That would make testing against the future easier, as I wouldn't have to check for new versions manually and after release nothing would have to change.
Could we change this to a feature request? Otherwise fine to close!
New issue checklist
Task name
UsePythonVersion@0
Task version
0.235.1
Issue Description
It wasn't possible, to load the unstable
3.13
when allowing to download prerelease version with:This has to be possible to test for future python releases in the pipeline. The
manifest.json
has3.13
listed as beta.Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
any
Relevant log output
##[error]Failed to download Python from the Github Actions python registry (https://github.com/actions/python-versions). Error: Error: Could not find Python matching spec 3.13 (x64) in the python-versions registry. Beware that only systems listed in the Github Actions python versions manifest (https://github.com/actions/python-versions/blob/main/versions-manifest.json) are fit for downloading python on-flight. Also, proxy is not supported.
Full task logs with system.debug enabled
Repro steps
The text was updated successfully, but these errors were encountered: