setup-python
setup-python copied to clipboard
Unable to Set-up Python
Description: Version 3.10 was not found in the local cache Error: Version 3.10 with arch x[6]
Action version: Latest
Platform:
- Ubuntu
Runner type:
- Self-hosted
Tools version: 3.10, I have also tried 3.10.4 I get the same error
Repro steps:
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
Expected behavior: Version should be fetched correctly.
Actual behavior: The 3.10 version for x64 exists but the error says otherwise.
Hello @Pavansai07784. Thank you for your report. Which version of ubuntu do you use ? Where are your binaries located ? Did you define RUNNER_TOOL_CACHE
or AGENT_TOOLSDIRECTORY
env variables? Which values do they have ?
Hi, @dmitry-shibanov Thanks for responding quickly, It is a 64-bit Linux VM, and what do you mean by Binaries here? I haven't specified RUNNER_TOOL_CACHE or AGENT_TOOLSDIRECTORY
I am seeing a similar error.
yaml at https://github.com/gafusion/omas/blob/ec_cocos/.github/workflows/regression.yml
Error at https://github.com/gafusion/omas/actions/runs/3896178260
Mention @orso82 and @jmcclena
Hi, @dmitry-shibanov Thanks for responding quickly, It is a 64-bit Linux VM, and what do you mean by Binaries here? I haven't specified RUNNER_TOOL_CACHE or AGENT_TOOLSDIRECTORY
I mean where do you store python versions ? Could you please try to log values for RUNNER_TOOL_CACHE and AGENT_TOOLSDIRECTORY ?
This is what i am using
- name: Set up Python 3.8 uses: actions/setup-python@v3 with: python-version: "3.8.16" architecture: x64 env: AGENT_TOOLSDIRECTORY: /opt/github/actions-runner/_work/_tool/Python/3.8.16/x64
Hello @Pavansai07784. Could you please try to set AGENT_TOOLSDIRECTORY as /opt/github/actions-runner/_work/_tool
? For more information please refer to this section of documentation. Besides, you can try to switch to the latest major tag (v4)
@dmitry-shibanov Still getting the same error
Could you please attach logs and error message ?
- 2023-01-12T12:57:28.9311395Z ##[debug]Python is expected to be installed into /opt/github/actions-runner/_work/_tool 2023-01-12T12:57:28.9315258Z ::group::Installed versions 2023-01-12T12:57:28.9315533Z ##[group]Installed versions 2023-01-12T12:57:28.9318957Z ##[debug]Semantic version spec of 3.8 is 3.8 2023-01-12T12:57:28.9322447Z ##[debug]isExplicit: 2023-01-12T12:57:28.9323778Z ##[debug]explicit? false 2023-01-12T12:57:28.9327475Z ##[debug]evaluating 0 versions 2023-01-12T12:57:28.9328047Z ##[debug]match not found 2023-01-12T12:57:28.9328843Z Version 3.8 was not found in the local cache 2023-01-12T12:57:28.9329776Z ##[debug]Getting manifest from actions/python-versions@main 2023-01-12T12:57:28.9332084Z ##[debug]set auth 2023-01-12T12:57:29.2557364Z ##[debug]check 3.12.0-alpha.4 satisfies 3.8 2023-01-12T12:57:29.2589746Z ##[debug]check 3.12.0-alpha.3 satisfies 3.8 2023-01-12T12:57:29.2595724Z ##[debug]check 3.12.0-alpha.2 satisfies 3.8 2023-01-12T12:57:29.2596254Z ##[debug]check 3.12.0-alpha.1 satisfies 3.8 2023-01-12T12:57:29.2596914Z ##[debug]check 3.11.1 satisfies 3.8 2023-01-12T12:57:29.2599827Z ##[debug]check 3.11.0 satisfies 3.8 2023-01-12T12:57:29.2600307Z ##[debug]check 3.11.0-rc.2 satisfies 3.8 2023-01-12T12:57:29.2600694Z ##[debug]check 3.11.0-rc.1 satisfies 3.8 2023-01-12T12:57:29.2601076Z ##[debug]check 3.11.0-beta.5 satisfies 3.8 2023-01-12T12:57:29.2602920Z ##[debug]check 3.11.0-beta.4 satisfies 3.8 2023-01-12T12:57:29.2604130Z ##[debug]check 3.11.0-beta.3 satisfies 3.8 2023-01-12T12:57:29.2605634Z ##[debug]check 3.11.0-beta.2 satisfies 3.8 2023-01-12T12:57:29.2606493Z ##[debug]check 3.11.0-beta.1 satisfies 3.8 2023-01-12T12:57:29.2607117Z ##[debug]check 3.11.0-alpha.7 satisfies 3.8 2023-01-12T12:57:29.2607513Z ##[debug]check 3.11.0-alpha.6 satisfies 3.8 2023-01-12T12:57:29.2608285Z ##[debug]check 3.11.0-alpha.5 satisfies 3.8 2023-01-12T12:57:29.2608759Z ##[debug]check 3.11.0-alpha.4 satisfies 3.8 2023-01-12T12:57:29.2609171Z ##[debug]check 3.11.0-alpha.3 satisfies 3.8 2023-01-12T12:57:29.2609577Z ##[debug]check 3.11.0-alpha.2 satisfies 3.8 2023-01-12T12:57:29.2610015Z ##[debug]check 3.11.0-alpha.1 satisfies 3.8 2023-01-12T12:57:29.2610478Z ##[debug]check 3.10.9 satisfies 3.8 2023-01-12T12:57:29.2610837Z ##[debug]check 3.10.8 satisfies 3.8 2023-01-12T12:57:29.2611160Z ##[debug]check 3.10.7 satisfies 3.8 2023-01-12T12:57:29.2611516Z ##[debug]check 3.10.6 satisfies 3.8 2023-01-12T12:57:29.2611833Z ##[debug]check 3.10.5 satisfies 3.8 2023-01-12T12:57:29.2612561Z ##[debug]check 3.10.4 satisfies 3.8 2023-01-12T12:57:29.2612932Z ##[debug]check 3.10.3 satisfies 3.8 2023-01-12T12:57:29.2613339Z ##[debug]check 3.10.2 satisfies 3.8 2023-01-12T12:57:29.2613837Z ##[debug]check 3.10.1 satisfies 3.8 2023-01-12T12:57:29.2614166Z ##[debug]check 3.10.0 satisfies 3.8 2023-01-12T12:57:29.2615055Z ##[debug]check 3.10.0-rc.2 satisfies 3.8 2023-01-12T12:57:29.2615674Z ##[debug]check 3.10.0-rc.1 satisfies 3.8 2023-01-12T12:57:29.2616054Z ##[debug]check 3.10.0-beta.4 satisfies 3.8 2023-01-12T12:57:29.2616441Z ##[debug]check 3.10.0-beta.3 satisfies 3.8 2023-01-12T12:57:29.2616813Z ##[debug]check 3.10.0-beta.2 satisfies 3.8 2023-01-12T12:57:29.2617664Z ##[debug]check 3.10.0-beta.1 satisfies 3.8 2023-01-12T12:57:29.2618240Z ##[debug]check 3.10.0-alpha.7 satisfies 3.8 2023-01-12T12:57:29.2618635Z ##[debug]check 3.10.0-alpha.6 satisfies 3.8 2023-01-12T12:57:29.2619047Z ##[debug]check 3.10.0-alpha.5 satisfies 3.8 2023-01-12T12:57:29.2619420Z ##[debug]check 3.10.0-alpha.4 satisfies 3.8 2023-01-12T12:57:29.2619811Z ##[debug]check 3.10.0-alpha.3 satisfies 3.8 2023-01-12T12:57:29.2620182Z ##[debug]check 3.10.0-alpha.2 satisfies 3.8 2023-01-12T12:57:29.2620560Z ##[debug]check 3.10.0-alpha.1 satisfies 3.8 2023-01-12T12:57:29.2620904Z ##[debug]check 3.9.16 satisfies 3.8 2023-01-12T12:57:29.2621240Z ##[debug]check 3.9.15 satisfies 3.8 2023-01-12T12:57:29.2621568Z ##[debug]check 3.9.14 satisfies 3.8 2023-01-12T12:57:29.2621901Z ##[debug]check 3.9.13 satisfies 3.8 2023-01-12T12:57:29.2622216Z ##[debug]check 3.9.12 satisfies 3.8 2023-01-12T12:57:29.2622558Z ##[debug]check 3.9.11 satisfies 3.8 2023-01-12T12:57:29.2622894Z ##[debug]check 3.9.10 satisfies 3.8 2023-01-12T12:57:29.2623215Z ##[debug]check 3.9.9 satisfies 3.8 2023-01-12T12:57:29.2623739Z ##[debug]check 3.9.8 satisfies 3.8 2023-01-12T12:57:29.2624060Z ##[debug]check 3.9.7 satisfies 3.8 2023-01-12T12:57:29.2624682Z ##[debug]check 3.9.6 satisfies 3.8 2023-01-12T12:57:29.2624996Z ##[debug]check 3.9.5 satisfies 3.8 2023-01-12T12:57:29.2625332Z ##[debug]check 3.9.4 satisfies 3.8 2023-01-12T12:57:29.2625653Z ##[debug]check 3.9.3 satisfies 3.8 2023-01-12T12:57:29.2625980Z ##[debug]check 3.9.2 satisfies 3.8 2023-01-12T12:57:29.2626342Z ##[debug]check 3.9.2-rc.1 satisfies 3.8 2023-01-12T12:57:29.2626672Z ##[debug]check 3.9.1 satisfies 3.8 2023-01-12T12:57:29.2627037Z ##[debug]check 3.9.1-rc.1 satisfies 3.8 2023-01-12T12:57:29.2627369Z ##[debug]check 3.9.0 satisfies 3.8 2023-01-12T12:57:29.2627733Z ##[debug]check 3.9.0-rc.2 satisfies 3.8 2023-01-12T12:57:29.2628092Z ##[debug]check 3.9.0-rc.1 satisfies 3.8 2023-01-12T12:57:29.2628460Z ##[debug]check 3.9.0-beta.5 satisfies 3.8 2023-01-12T12:57:29.2628970Z ##[debug]check 3.9.0-beta.4 satisfies 3.8 2023-01-12T12:57:29.2629298Z ##[debug]check 3.8.16 satisfies 3.8 2023-01-12T12:57:29.2629640Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2629972Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2631546Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2631881Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2632218Z ##[debug]check 3.8.15 satisfies 3.8 2023-01-12T12:57:29.2632697Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2633040Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2633353Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2634174Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2634709Z ##[debug]check 3.8.14 satisfies 3.8 2023-01-12T12:57:29.2635033Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2635365Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2635696Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2636015Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2636328Z ##[debug]check 3.8.13 satisfies 3.8 2023-01-12T12:57:29.2636660Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2636983Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2637321Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2637636Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2637964Z ##[debug]check 3.8.12 satisfies 3.8 2023-01-12T12:57:29.2638301Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2638630Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2638951Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2639267Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2639603Z ##[debug]check 3.8.11 satisfies 3.8 2023-01-12T12:57:29.2639924Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2640245Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2640554Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2640891Z ##[debug]check 3.8.10 satisfies 3.8 2023-01-12T12:57:29.2641229Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2641545Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2641880Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2642189Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2642511Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2642831Z ##[debug]check 3.8.9 satisfies 3.8 2023-01-12T12:57:29.2643165Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2643577Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2643902Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2644218Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2644539Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2644857Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2645193Z ##[debug]check 3.8.8 satisfies 3.8 2023-01-12T12:57:29.2645537Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2645848Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2646165Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2646472Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2646803Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2647111Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2647433Z ##[debug]check 3.8.7 satisfies 3.8 2023-01-12T12:57:29.2647933Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2648264Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2648576Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2648926Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2649250Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2649557Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2650220Z ##[debug]check 3.8.6 satisfies 3.8 2023-01-12T12:57:29.2650544Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2650885Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2651204Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2651528Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2651827Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2652151Z ##[debug]check 3.8.5 satisfies 3.8 2023-01-12T12:57:29.2652472Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2652800Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2653119Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2653534Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2653874Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2654181Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2654635Z ##[debug]check 3.8.4 satisfies 3.8 2023-01-12T12:57:29.2654967Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2655291Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2655618Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2655936Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2656246Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2656577Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2656884Z ##[debug]check 3.8.3 satisfies 3.8 2023-01-12T12:57:29.2657221Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2657557Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2657864Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2658193Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2658516Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2658832Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2659141Z ##[debug]check 3.8.2 satisfies 3.8 2023-01-12T12:57:29.2659465Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2659783Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2660101Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2660415Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2660724Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2661057Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2661381Z ##[debug]check 3.8.1 satisfies 3.8 2023-01-12T12:57:29.2661714Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2662034Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2662361Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2662671Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2663002Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2663303Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2663880Z ##[debug]check 3.8.0 satisfies 3.8 2023-01-12T12:57:29.2664205Z ##[debug]x64===x64 && darwin===linux 2023-01-12T12:57:29.2664536Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2664854Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2665183Z ##[debug]x64===x64 && linux===linux 2023-01-12T12:57:29.2665620Z ##[debug]x64===x64 && win32===linux 2023-01-12T12:57:29.2665939Z ##[debug]x86===x64 && win32===linux 2023-01-12T12:57:29.2666263Z ##[debug]check 3.7.15 satisfies 3.8 2023-01-12T12:57:29.2666580Z ##[debug]check 3.7.14 satisfies 3.8 2023-01-12T12:57:29.2666918Z ##[debug]check 3.7.13 satisfies 3.8 2023-01-12T12:57:29.2667238Z ##[debug]check 3.7.12 satisfies 3.8 2023-01-12T12:57:29.2667565Z ##[debug]check 3.7.11 satisfies 3.8 2023-01-12T12:57:29.2667880Z ##[debug]check 3.7.10 satisfies 3.8 2023-01-12T12:57:29.2668212Z ##[debug]check 3.7.9 satisfies 3.8 2023-01-12T12:57:29.2668532Z ##[debug]check 3.7.8 satisfies 3.8 2023-01-12T12:57:29.2668861Z ##[debug]check 3.7.7 satisfies 3.8 2023-01-12T12:57:29.2669329Z ##[debug]check 3.7.6 satisfies 3.8 2023-01-12T12:57:29.2669681Z ##[debug]check 3.7.5 satisfies 3.8 2023-01-12T12:57:29.2670003Z ##[debug]check 3.7.1 satisfies 3.8 2023-01-12T12:57:29.2670330Z ##[debug]check 3.6.15 satisfies 3.8 2023-01-12T12:57:29.2670657Z ##[debug]check 3.6.14 satisfies 3.8 2023-01-12T12:57:29.2670978Z ##[debug]check 3.6.13 satisfies 3.8 2023-01-12T12:57:29.2671380Z ##[debug]check 3.6.12 satisfies 3.8 2023-01-12T12:57:29.2671702Z ##[debug]check 3.6.11 satisfies 3.8 2023-01-12T12:57:29.2672033Z ##[debug]check 3.6.10 satisfies 3.8 2023-01-12T12:57:29.2672356Z ##[debug]check 3.6.9 satisfies 3.8 2023-01-12T12:57:29.2672690Z ##[debug]check 3.6.8 satisfies 3.8 2023-01-12T12:57:29.2673000Z ##[debug]check 3.6.7 satisfies 3.8 2023-01-12T12:57:29.2673337Z ##[debug]check 3.5.10 satisfies 3.8 2023-01-12T12:57:29.2673733Z ##[debug]check 3.5.9 satisfies 3.8 2023-01-12T12:57:29.2674084Z ##[debug]check 3.5.4 satisfies 3.8 2023-01-12T12:57:29.2674416Z ##[debug]check 3.4.10 satisfies 3.8 2023-01-12T12:57:29.2674742Z ##[debug]check 3.4.4 satisfies 3.8 2023-01-12T12:57:29.2675074Z ##[debug]check 3.3.7 satisfies 3.8 2023-01-12T12:57:29.2675413Z ##[debug]check 3.3.5 satisfies 3.8 2023-01-12T12:57:29.2675835Z ##[debug]check 3.2.5 satisfies 3.8 2023-01-12T12:57:29.2676187Z ##[debug]check 3.1.4 satisfies 3.8 2023-01-12T12:57:29.2676506Z ##[debug]check 3.0.1 satisfies 3.8 2023-01-12T12:57:29.2676845Z ##[debug]check 2.7.18 satisfies 3.8 2023-01-12T12:57:29.2677165Z ##[debug]check 2.7.17 satisfies 3.8 2023-01-12T12:57:29.2692310Z ##[debug]Unable to locate executable file: lsb_release. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable. 2023-01-12T12:57:29.2717007Z ##[error]The version '3.8' with architecture 'x64' was not found for this operating system. The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json 2023-01-12T12:57:29.2752273Z ##[debug]Node Action run completed with exit code 1 2023-01-12T12:57:29.2758448Z ##[debug]Finishing: Run actions/setup-python@v4
Did you enable cache functionality ? Could you please run this command on your self-hosted runner apt-get update && apt-get install -y lsb-release
Its as redhat Linux VM, I have did yum update and yum install -y redhat-lsb-core, Now getting the below error
Version 3.8 was not found in the local cache Error: The version '3.8' with architecture 'x64' was not found for OracleServer 7.9 undefined.
Could this be related to this latest Ubuntu 20.04 image bug?
I am also getting the same issue, starting this morning. I have not made any changes to any of my workflows, Poetry configuration files, env. etc. Happens attempting setup-python@v2
with 3.10.0 and 3.9.5 (but not setup-python@v1
).
EDIT: Also happens if I set versions in my matrix to 3.10 and 3.9
I'm no longer getting this error, but I fail to see what might've fixed it (I didn't change anything in my workflows). My images compile now!
I am getting the same error, also i am not able to find the python version for arm64 in here https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
I'm using a .python-version
file and receive this error, too, on ubuntu-latest
. I can find the version in the manifest.json, but if I look at this error, it seems like the parsing did not work.
The version '3.7.12
' with architecture 'x64' was not found for Ubuntu 22.04.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
My .python-version
file has a new line.
.python-version
3.7.12
I remove the newline with truncate -s -1 .python-version
and still receive the error.
Error:
The version '3.7.12' with architecture 'x64' was not found for Ubuntu 22.04.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
I am also getting the same error.
I am using a self hosted centos7 runner which runs ubuntu container my workflow file looks like the following
name: 'Test'
on:
pull_request:
paths:
- '!**/README.md'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-api:
name: test-api
runs-on: self-hosted
container:
image: ubuntu
steps:
- uses: actions/checkout@v1
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
env:
# Required to detect python properly
# AGENT_TOOLSDIRECTORY: '/opt/hostedtoolcache'
AGENT_TOOLSDIRECTORY: '/opt/github/actions-runner/_work/_tool'
Error looked like this
Error: Unable to locate executable file: lsb_release. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
I have faced the same problem today, is the problem resolved ?
Hello @KPB98115. For now we're investigating it. Could you please try to use this command apt-get update && apt-get install -y lsb-release
. Do you use cache? Which version of Ubuntu do you use?
Hello everyone. Could you please check if you have /etc/lsb-release
or /etc/os-release
files? If you have them could you please send their content and permissions ?
ad@git:~$ ll /etc/lsb-release
-rw-r--r-- 1 root root 104 Mar 14 12:20 /etc/lsb-release
ad@git:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
ad@git:~$ ll /etc/os-release
lrwxrwxrwx 1 root root 21 Mar 14 12:20 /etc/os-release -> ../usr/lib/os-release
ad@git:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
I am running into this issue with an Amazon Linux 2023 AMI. According to AWS they won't incluide lsb-release anymore but they are storing the information on /etc/os-release
as they state:
The Linux Standards Base (LSB) introduced this command and Linux distributions adopted it. Linux distributions have evolved to use the simpler standard of holding this information in /etc/os-release and other related files.
This is the content of /etc/os-release
on my instance:
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"
From the logs of the execution it seems like setup-python@v4
gives up after not finding the executable for lsb-release
.
@dmitry-shibanov Is there a mechanism in place to fall back to that file?
Source: https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html#lsb-release
No solution to this yet? we're running into the exact same issue. Using gitea/act_runner with the default ubuntu-22.04 runner this translates to the node:16-bullseye container being used. Note that we're running it as DinD on K8s, so some things may be slightly different.
The error we receive is:
::error::The version '3.11.8' with architecture 'x64' was not found for this operating system.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
Looking into the details of this with ACTIONS_STEP_DEBUG
secret set to true
it seems like the match isn't working, and it seems like lsb-release might be the root cause of the issue:
Python is expected to be installed into /toolcache
::group::Installed versions
Semantic version spec of 3.11.8 is 3.11.8
isExplicit: 3.11.8
explicit? ***
checking cache: /toolcache/Python/3.11.8/x64
not found
Version 3.11.8 was not found in the local cache
Getting manifest from actions/python-versions@main
check 3.13.0-alpha.4 satisfies 3.11.8
[...]
check 3.12.0-alpha.1 satisfies 3.11.8
check 3.11.8 satisfies 3.11.8
arm64===x64 && darwin===linux
x64===x64 && darwin===linux
x64===x64 && linux===linux
x64===x64 && linux===linux
x64===x64 && win32===linux
x86===x64 && win32===linux
check 3.11.7 satisfies 3.11.8
check 3.11.6 satisfies 3.11.8
[...]
Unable to locate executable file: lsb_release. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
::error::The version '3.11.8' with architecture 'x64' was not found for this operating system.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
So the strange part here is that it seems to find the version (check 3.11.8 satisfies 3.11.8
) and even be able to find a matching arch (x64===x64 && linux===linux
- reported 2 times for whatever reason), but then just continues with the check.
This code here seems to use lsb_release
to get the OS version using lsb_release
, so it makes some assumptions about the OS. Debian however doesn't ship with lsb_release by default and thus it this will break.
cat /etc/os-release
provides:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
The permissions on the file are:
ls -lach /etc/os-release
lrwxrwxrwx 1 root root 21 Mar 1 12:01 /etc/os-release -> ../usr/lib/os-release
ls -lach /usr/lib/os-release
-rw-r--r-- 1 root root 267 Mar 1 12:01 /usr/lib/os-release
So, everything needed for detection is there it seems. However: searching the repo I was unable to find code that would make use of os-release
, I only found the previously mentioned lsb_release call that will fail on many Linux images.
It also seems to be the only used mechanism for OS detection on Linux and is used here before throwing the error. I however have not dug into the code much deeper and this error seems to be rather a follow-up error when the python package detection already failed.
I'll now try switching to catthehacker/ubuntu:act-22.04 which imitates the official Github runner but in general you pbl. want to add some additional support of other operating systems and not assume lsb_release
is always available. Also note that the real error message is currently hidden and can only be seen in Debug mode. Without debug mode the error message provided sends users into the wrong direction.
/edit I can confirm that actions/setup-python@v5
works as expected with catthehacker/ubuntu:act-22.04
.
我今天也遇到这个问题了,在我的两个自托管Act Runner上都发生了 这是我的错误信息
::group::Installed versions
Version 3.1[2](https://git.zymlove.top:50443/zymlove/update-system/actions/runs/6#jobstep-2-2).0 was not found in the local cache
::error::The version '[3](https://git.zymlove.top:50443/zymlove/update-system/actions/runs/6#jobstep-2-3).12.0' with architecture 'x64' was not found for this operating system.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
这是我的部分action文件
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 设置 Python 3.12.0
uses: actions/setup-python@v5
with:
python-version: '3.12.0'
cache: 'pip'
这是我的Act Runner平台信息
root@ubuntu-23:~# ll /etc/lsb-releasel
-rw-r--r-- 1 root root 99 Oct 9 2023 /etc/lsb-release
root@ubuntu-23:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"
root@ubuntu-23:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo
root@ubuntu-23:~#
现在有什么临时解决方法吗?
Same here, with Fedora Linux.
❯ lsb_release
LSB Version: n/a
❯ cat /etc/os-release
NAME="Fedora Linux"
VERSION="39 (Server Edition)"
ID=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux 39 (Server Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39
SUPPORT_END=2024-11-12
VARIANT="Server Edition"
VARIANT_ID=server
After installing lsb_release
:
::group::Installed versions
Version 3.12.3 was not found in the local cache
::error::The version '3.12.3' with architecture 'x64' was not found for Fedora 39 undefined.%0AThe list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
Debug Output from Github Runner on self hosted debian:
Run actions/setup-python@v5
with:
python-version: 3.12.3
check-latest: false
token: ***
update-environment: true
allow-prereleases: false
##[debug]Python is expected to be installed into /home/bs/actions-runner/_work/_tool
::group::Installed versions
Installed versions
##[debug]Semantic version spec of 3.12.3 is 3.12.3
##[debug]isExplicit: 3.12.3
##[debug]explicit? true
##[debug]checking cache: /home/bs/actions-runner/_work/_tool/Python/3.12.3/x64
##[debug]not found
Version 3.12.3 was not found in the local cache
##[debug]Getting manifest from actions/python-versions@main
##[debug]set auth
##[debug]check 3.13.0-beta.1 satisfies 3.12.3
##[debug]check 3.13.0-alpha.6 satisfies 3.12.3
##[debug]check 3.13.0-alpha.5 satisfies 3.12.3
##[debug]check 3.13.0-alpha.4 satisfies 3.12.3
##[debug]check 3.13.0-alpha.3 satisfies 3.12.3
##[debug]check 3.13.0-alpha.2 satisfies 3.12.3
##[debug]check 3.13.0-alpha.1 satisfies 3.12.3
##[debug]check 3.12.3 satisfies 3.12.3
##[debug]arm64===x64 && darwin===linux
##[debug]x64===x64 && darwin===linux
##[debug]x64===x[64](https://github.com/JUMPSEC/CASM.AssetStore/actions/runs/9229152077/job/25394901992#step:3:65) && linux===linux
##[debug]x64===x64 && linux===linux
##[debug]x64===x64 && linux===linux
##[debug]x64===x64 && win32===linux
##[debug]x86===x64 && win32===linux
##[debug]check 3.12.2 satisfies 3.12.3
##[debug]check 3.12.1 satisfies 3.12.3
##[debug]check 3.12.0 satisfies 3.12.3
##[debug]check 3.12.0-rc.3 satisfies 3.12.3
##[debug]check 3.12.0-rc.2 satisfies 3.12.3
##[debug]check 3.12.0-rc.1 satisfies 3.12.3
##[debug]check 3.12.0-beta.4 satisfies 3.12.3
##[debug]check 3.12.0-beta.3 satisfies 3.12.3
##[debug]check 3.12.0-beta.2 satisfies 3.12.3
##[debug]check 3.12.0-beta.1 satisfies 3.12.3
##[debug]check 3.12.0-alpha.7 satisfies 3.12.3
##[debug]check 3.12.0-alpha.6 satisfies 3.12.3
##[debug]check 3.12.0-alpha.5 satisfies 3.12.3
##[debug]check 3.12.0-alpha.4 satisfies 3.12.3
##[debug]check 3.12.0-alpha.3 satisfies 3.12.3
##[debug]check 3.12.0-alpha.2 satisfies 3.12.3
##[debug]check 3.12.0-alpha.1 satisfies 3.12.3
##[debug]check 3.11.9 satisfies 3.12.3
##[debug]check 3.11.8 satisfies 3.12.3
##[debug]check 3.11.7 satisfies 3.12.3
##[debug]check 3.11.6 satisfies 3.12.3
##[debug]check 3.11.5 satisfies 3.12.3
##[debug]check 3.11.4 satisfies 3.12.3
##[debug]check 3.11.3 satisfies 3.12.3
##[debug]check 3.11.2 satisfies 3.12.3
##[debug]check 3.11.1 satisfies 3.12.3
##[debug]check 3.11.0 satisfies 3.12.3
##[debug]check 3.11.0-rc.2 satisfies 3.12.3
##[debug]check 3.11.0-rc.1 satisfies 3.12.3
##[debug]check 3.11.0-beta.5 satisfies 3.12.3
##[debug]check 3.11.0-beta.4 satisfies 3.12.3
##[debug]check 3.11.0-beta.3 satisfies 3.12.3
##[debug]check 3.11.0-beta.2 satisfies 3.12.3
##[debug]check 3.11.0-beta.1 satisfies 3.12.3
##[debug]check 3.11.0-alpha.7 satisfies 3.12.3
##[debug]check 3.11.0-alpha.6 satisfies 3.12.3
##[debug]check 3.11.0-alpha.5 satisfies 3.12.3
##[debug]check 3.11.0-alpha.4 satisfies 3.12.3
##[debug]check 3.11.0-alpha.3 satisfies 3.12.3
##[debug]check 3.11.0-alpha.2 satisfies 3.12.3
##[debug]check 3.11.0-alpha.1 satisfies 3.12.3
##[debug]check 3.10.14 satisfies 3.12.3
##[debug]check 3.10.13 satisfies 3.12.3
##[debug]check 3.10.12 satisfies 3.12.3
##[debug]check 3.10.11 satisfies 3.12.3
##[debug]check 3.10.10 satisfies 3.12.3
##[debug]check 3.10.9 satisfies 3.12.3
##[debug]check 3.10.8 satisfies 3.12.3
##[debug]check 3.10.7 satisfies 3.12.3
##[debug]check 3.10.6 satisfies 3.12.3
##[debug]check 3.10.5 satisfies 3.12.3
##[debug]check 3.10.4 satisfies 3.12.3
##[debug]check 3.10.3 satisfies 3.12.3
##[debug]check 3.10.2 satisfies 3.12.3
##[debug]check 3.10.1 satisfies 3.12.3
##[debug]check 3.10.0 satisfies 3.12.3
##[debug]check 3.10.0-rc.2 satisfies 3.12.3
##[debug]check 3.10.0-rc.1 satisfies 3.12.3
##[debug]check 3.10.0-beta.4 satisfies 3.12.3
##[debug]check 3.10.0-beta.3 satisfies 3.12.3
##[debug]check 3.10.0-beta.2 satisfies 3.12.3
##[debug]check 3.10.0-beta.1 satisfies 3.12.3
##[debug]check 3.10.0-alpha.7 satisfies 3.12.3
##[debug]check 3.10.0-alpha.6 satisfies 3.12.3
##[debug]check 3.10.0-alpha.5 satisfies 3.12.3
##[debug]check 3.10.0-alpha.4 satisfies 3.12.3
##[debug]check 3.10.0-alpha.3 satisfies 3.12.3
##[debug]check 3.10.0-alpha.2 satisfies 3.12.3
##[debug]check 3.10.0-alpha.1 satisfies 3.12.3
##[debug]check 3.9.19 satisfies 3.12.3
##[debug]check 3.9.18 satisfies 3.12.3
##[debug]check 3.9.17 satisfies 3.12.3
##[debug]check 3.9.16 satisfies 3.12.3
##[debug]check 3.9.15 satisfies 3.12.3
##[debug]check 3.9.14 satisfies 3.12.3
##[debug]check 3.9.13 satisfies 3.12.3
##[debug]check 3.9.12 satisfies 3.12.3
##[debug]check 3.9.11 satisfies 3.12.3
##[debug]check 3.9.10 satisfies 3.12.3
##[debug]check 3.9.9 satisfies 3.12.3
##[debug]check 3.9.8 satisfies 3.12.3
##[debug]check 3.9.7 satisfies 3.12.3
##[debug]check 3.9.6 satisfies 3.12.3
##[debug]check 3.9.5 satisfies 3.12.3
##[debug]check 3.9.4 satisfies 3.12.3
##[debug]check 3.9.3 satisfies 3.12.3
##[debug]check 3.9.2 satisfies 3.12.3
##[debug]check 3.9.2-rc.1 satisfies 3.12.3
##[debug]check 3.9.1 satisfies 3.12.3
##[debug]check 3.9.1-rc.1 satisfies 3.12.3
##[debug]check 3.9.0 satisfies 3.12.3
##[debug]check 3.9.0-rc.2 satisfies 3.12.3
##[debug]check 3.9.0-rc.1 satisfies 3.12.3
##[debug]check 3.9.0-beta.5 satisfies 3.12.3
##[debug]check 3.9.0-beta.4 satisfies 3.12.3
##[debug]check 3.8.18 satisfies 3.12.3
##[debug]check 3.8.17 satisfies 3.12.3
##[debug]check 3.8.16 satisfies 3.12.3
##[debug]check 3.8.15 satisfies 3.12.3
##[debug]check 3.8.14 satisfies 3.12.3
##[debug]check 3.8.13 satisfies 3.12.3
##[debug]check 3.8.12 satisfies 3.12.3
##[debug]check 3.8.11 satisfies 3.12.3
##[debug]check 3.8.10 satisfies 3.12.3
##[debug]check 3.8.9 satisfies 3.12.3
##[debug]check 3.8.8 satisfies 3.12.3
##[debug]check 3.8.7 satisfies 3.12.3
##[debug]check 3.8.6 satisfies 3.12.3
##[debug]check 3.8.5 satisfies 3.12.3
##[debug]check 3.8.4 satisfies 3.12.3
##[debug]check 3.8.3 satisfies 3.12.3
##[debug]check 3.8.2 satisfies 3.12.3
##[debug]check 3.8.1 satisfies 3.12.3
##[debug]check 3.8.0 satisfies 3.12.3
##[debug]check 3.7.17 satisfies 3.12.3
##[debug]check 3.7.16 satisfies 3.12.3
##[debug]check 3.7.15 satisfies 3.12.3
##[debug]check 3.7.14 satisfies 3.12.3
##[debug]check 3.7.13 satisfies 3.12.3
##[debug]check 3.7.12 satisfies 3.12.3
##[debug]check 3.7.11 satisfies 3.12.3
##[debug]check 3.7.10 satisfies 3.12.3
##[debug]check 3.7.9 satisfies 3.12.3
##[debug]check 3.7.8 satisfies 3.12.3
##[debug]check 3.7.7 satisfies 3.12.3
##[debug]check 3.7.6 satisfies 3.12.3
##[debug]check 3.7.5 satisfies 3.12.3
##[debug]check 3.7.4 satisfies 3.12.3
##[debug]check 3.7.3 satisfies 3.12.3
##[debug]check 3.7.2 satisfies 3.12.3
##[debug]check 3.7.1 satisfies 3.12.3
##[debug]check 3.6.15 satisfies 3.12.3
##[debug]check 3.6.14 satisfies 3.12.3
##[debug]check 3.6.13 satisfies 3.12.3
##[debug]check 3.6.12 satisfies 3.12.3
##[debug]check 3.6.11 satisfies 3.12.3
##[debug]check 3.6.10 satisfies 3.12.3
##[debug]check 3.6.9 satisfies 3.12.3
##[debug]check 3.6.8 satisfies 3.12.3
##[debug]check 3.6.7 satisfies 3.12.3
##[debug]check 3.5.10 satisfies 3.12.3
##[debug]check 3.5.9 satisfies 3.12.3
##[debug]check 3.5.4 satisfies 3.12.3
##[debug]check 3.4.10 satisfies 3.12.3
##[debug]check 3.4.4 satisfies 3.12.3
##[debug]check 3.3.7 satisfies 3.12.3
##[debug]check 3.3.5 satisfies 3.12.3
##[debug]check 3.2.5 satisfies 3.12.3
##[debug]check 3.1.4 satisfies 3.12.3
##[debug]check 3.0.1 satisfies 3.12.3
##[debug]OS Name: Debian, Version: 11
Error: The version '3.12.3' with architecture 'x64' was not found for Debian 11.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Set up Python
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"