Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
UsePythonVersion
Breaking task version
0.248.1
Last working task version
0.248.1
Regression Description
The UsePythonVersion@0
task started installing partial Python installations on Windows, which are missing python312.lib. In the task logs we see warnings Could not find platform independent libraries <prefix>
.
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
Windows
Relevant log output
2025-04-25T22:43:43.1736427Z ##[section]Starting: Use Python 3.12 (windows_build_container)
2025-04-25T22:43:43.1741410Z ==============================================================================
2025-04-25T22:43:43.1741503Z Task : Use Python version
2025-04-25T22:43:43.1741556Z Description : Use the specified version of Python from the tool cache, optionally adding it to the PATH
2025-04-25T22:43:43.1741653Z Version : 0.248.1
2025-04-25T22:43:43.1741696Z Author : Microsoft Corporation
2025-04-25T22:43:43.1741750Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/use-python-version
2025-04-25T22:43:43.1741823Z ==============================================================================
2025-04-25T22:43:43.5931956Z ##[warning]You should provide GitHub token if you want to download a python release. Otherwise you may hit the GitHub anonymous download limit.
2025-04-25T22:43:43.7895381Z Downloading: https://github.com/actions/python-versions/releases/download/3.12.10-14343898437/python-3.12.10-win32-x64.zip
2025-04-25T22:43:44.5469548Z Extracting archive
2025-04-25T22:43:44.5888879Z [command]C:\Windows\system32\chcp.com 65001
2025-04-25T22:43:44.8529879Z Active code page: 65001
2025-04-25T22:43:44.8534515Z
2025-04-25T22:43:44.9004800Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\__w\_temp\python-3.12.10-win32-x64.zip', 'C:\__w\_temp\e7381365-3130-414a-9191-7fbe7bd281b9')"
2025-04-25T22:44:09.7601961Z
2025-04-25T22:44:09.7702702Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ./setup.ps1
2025-04-25T22:44:11.5545112Z Check if Python hostedtoolcache folder exist...
2025-04-25T22:44:11.5603107Z Create Python toolcache folder
2025-04-25T22:44:11.5644061Z Check if current Python version is installed...
2025-04-25T22:44:11.5711201Z No Python3.12.* found
2025-04-25T22:44:11.5717899Z Remove registry entries for Python 3.12(x64)...
2025-04-25T22:44:12.6303200Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6303532Z HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\{316e3b12
2025-04-25T22:44:12.6303806Z -1191-47df-b9d4-dcf0bf2f6cc4}".
2025-04-25T22:44:12.6356027Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6356311Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{08A1963
2025-04-25T22:44:12.6356687Z D-07D1-4620-929C-385F6A307772}".
2025-04-25T22:44:12.6428038Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6428424Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{1D520CE
2025-04-25T22:44:12.6430355Z 1-F09A-4A26-B110-52081FEA0AB9}".
2025-04-25T22:44:12.6449253Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6449624Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{1DAEF82
2025-04-25T22:44:12.6450929Z 4-881A-49C6-B91E-1D28877FF18D}".
2025-04-25T22:44:12.6528800Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6529054Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{2F4E993
2025-04-25T22:44:12.6530871Z 3-7587-4D85-9BA1-F2903AFB36D8}".
2025-04-25T22:44:12.6566775Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6566975Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{3C52413
2025-04-25T22:44:12.6568253Z 6-E47A-45C7-BB2C-242EAC3F4C32}".
2025-04-25T22:44:12.6598754Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6599628Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{46673E6
2025-04-25T22:44:12.6600625Z 3-1CA8-43EA-B73B-AC20DDD77C5A}".
2025-04-25T22:44:12.6634872Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6636556Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{537B2AF
2025-04-25T22:44:12.6636732Z 5-504B-4303-99CB-FDE56F47AA51}".
2025-04-25T22:44:12.6788216Z VERBOSE: Performing the operation "Remove Key" on target "Item:
2025-04-25T22:44:12.6788483Z HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{901B913
2025-04-25T22:44:12.6788834Z C-FA63-48D2-9842-7D7676739378}".
2025-04-25T22:44:12.8354483Z Create Python 3.12.10 folder in C:\__t\Python
2025-04-25T22:44:12.8379465Z Copy Python binaries to C:\__t\Python\3.12.10\x64
2025-04-25T22:44:12.8535696Z Install Python 3.12.10 in C:\__t\Python...
2025-04-25T22:46:51.3487915Z Files in C:\__t\Python\3.12.10\x64
2025-04-25T22:46:51.3711457Z
2025-04-25T22:46:51.3711742Z
2025-04-25T22:46:51.3715333Z Directory: C:\__t\Python\3.12.10\x64
2025-04-25T22:46:51.3715625Z
2025-04-25T22:46:51.3715859Z
2025-04-25T22:46:51.3720902Z Mode LastWriteTime Length Name
2025-04-25T22:46:51.3727468Z ---- ------------- ------ ----
2025-04-25T22:46:51.3733290Z -a---- 4/8/2025 12:57 PM 36874 LICENSE.txt
2025-04-25T22:46:51.3745726Z -a---- 4/8/2025 1:00 PM 1790373 NEWS.txt
2025-04-25T22:46:51.3754101Z -a---- 4/8/2025 10:30 PM 26964224 python-3.12.10-amd64.exe
2025-04-25T22:46:51.3762980Z -a---- 4/8/2025 12:57 PM 104952 python.exe
2025-04-25T22:46:51.3772953Z -a---- 4/8/2025 12:57 PM 70376 python3.dll
2025-04-25T22:46:51.3783009Z -a---- 4/8/2025 12:57 PM 6945272 python312.dll
2025-04-25T22:46:51.3791338Z -a---- 4/8/2025 12:57 PM 104304 pythonw.exe
2025-04-25T22:46:51.3799872Z -a---- 4/8/2025 12:57 PM 120400 vcruntime140.dll
2025-04-25T22:46:51.3809963Z -a---- 4/8/2025 12:57 PM 49776 vcruntime140_1.dll
2025-04-25T22:46:51.3814079Z
2025-04-25T22:46:51.3814419Z
2025-04-25T22:46:51.3816816Z Directory: C:\__t\Python\3.12.10\x64\DLLs
2025-04-25T22:46:51.3818709Z
2025-04-25T22:46:51.3818851Z
2025-04-25T22:46:51.3825793Z Mode LastWriteTime Length Name
2025-04-25T22:46:51.3833438Z ---- ------------- ------ ----
2025-04-25T22:46:51.3836768Z -a---- 4/8/2025 12:56 PM 75809 py.ico
2025-04-25T22:46:51.3845824Z -a---- 4/8/2025 12:56 PM 78396 pyc.ico
2025-04-25T22:46:51.3879437Z -a---- 4/8/2025 12:56 PM 83351 pyd.ico
2025-04-25T22:46:51.3888767Z Create python3 symlink
2025-04-25T22:46:51.3915342Z
2025-04-25T22:46:51.3915486Z
2025-04-25T22:46:51.3917448Z Directory: C:\__t\Python\3.12.10\x64
2025-04-25T22:46:51.3917574Z
2025-04-25T22:46:51.3918083Z
2025-04-25T22:46:51.3924186Z Mode LastWriteTime Length Name
2025-04-25T22:46:51.3929195Z ---- ------------- ------ ----
2025-04-25T22:46:51.3936948Z -a---l 4/25/2025 10:46 PM 0 python3.exe
2025-04-25T22:46:51.3944794Z Install and upgrade Pip
2025-04-25T22:46:51.4913247Z Could not find platform independent libraries <prefix>
2025-04-25T22:46:51.6211888Z Could not find platform independent libraries <prefix>
2025-04-25T22:46:54.8679989Z Looking in links: c:\Users\ContainerAdministrator\AppData\Local\Temp\tmp6pgzdj5o
2025-04-25T22:46:54.8978617Z Processing c:\users\containeradministrator\appdata\local\temp\tmp6pgzdj5o\pip-25.0.1-py3-none-any.whl
2025-04-25T22:46:54.9132744Z Installing collected packages: pip
2025-04-25T22:46:56.5228151Z WARNING: The scripts pip3.12.exe and pip3.exe are installed in 'C:\__w\_temp\e7381365-3130-414a-9191-7fbe7bd281b9\Scripts' which is not on PATH.
2025-04-25T22:46:56.5229354Z Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
2025-04-25T22:46:56.5342049Z Successfully installed pip-25.0.1
2025-04-25T22:46:56.6064118Z Could not find platform independent libraries <prefix>
2025-04-25T22:46:57.7936612Z Looking in indexes: https://build:***@msazure.pkgs.visualstudio.com/RiskIQ/_packaging/RiskIQ/pypi/simple
2025-04-25T22:46:58.2208811Z Collecting pip
2025-04-25T22:46:58.4890554Z Downloading https://msazure.pkgs.visualstudio.com/6f152d3b-c928-4c50-a90f-cf212ea0d6c5/_packaging/3737d7f6-647e-49ae-b23d-5284dd009836/pypi/download/pip/25.0.1/pip-25.0.1-py3-none-any.whl (1.8 MB)
2025-04-25T22:46:58.5378882Z ---------------------------------------- 1.8/1.8 MB 50.9 MB/s eta 0:00:00
2025-04-25T22:46:58.5714518Z Installing collected packages: pip
2025-04-25T22:46:58.5714864Z Attempting uninstall: pip
2025-04-25T22:46:58.5775768Z Found existing installation: pip 25.0.1
2025-04-25T22:46:58.7589495Z Uninstalling pip-25.0.1:
2025-04-25T22:46:58.7835088Z Successfully uninstalled pip-25.0.1
2025-04-25T22:47:00.6289608Z Successfully installed pip-25.0.1
2025-04-25T22:47:01.1442829Z Create complete file
2025-04-25T22:47:01.1455750Z
2025-04-25T22:47:01.1456021Z
2025-04-25T22:47:01.1543278Z
2025-04-25T22:47:01.1674200Z Found tool in cache: Python 3.12.10 x64
2025-04-25T22:47:01.1744077Z Prepending PATH environment variable with directory: C:\__t\Python\3.12.10\x64
2025-04-25T22:47:01.1745195Z Prepending PATH environment variable with directory: C:\__t\Python\3.12.10\x64\Scripts
2025-04-25T22:47:01.1745920Z Prepending PATH environment variable with directory: C:\Users\ContainerAdministrator\AppData\Roaming\Python\Python312\Scripts
2025-04-25T22:47:01.2032569Z ##[section]Finishing: Use Python 3.12 (windows_build_container)
Full task logs with system.debug enabled
Not able to get a successful run anymore.
Repro steps
- task: UsePythonVersion@0
displayName: Use Python 3.12
inputs:
versionSpec: '3.12'