Skip to content

Unable to Set-up Python #585

Closed
Closed

Description

@Pavansai07784

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.

Activity

  1. dmitry-shibanov commented on Jan 11, 2023

    @dmitry-shibanov
    Contributor

    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 ?

  2. Pavansai07784 commented on Jan 11, 2023

    @Pavansai07784
    Author

    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

  3. dmitry-shibanov commented on Jan 11, 2023

    @dmitry-shibanov
    Contributor

    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 ?

  4. Pavansai07784 commented on Jan 12, 2023

    @Pavansai07784
    Author

    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
  5. dmitry-shibanov commented on Jan 12, 2023

    @dmitry-shibanov
    Contributor

    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)

  6. Pavansai07784 commented on Jan 12, 2023

    @Pavansai07784
    Author

    @dmitry-shibanov Still getting the same error

  7. dmitry-shibanov commented on Jan 12, 2023

    @dmitry-shibanov
    Contributor

    Could you please attach logs and error message ?

  8. Pavansai07784 commented on Jan 12, 2023

    @Pavansai07784
    Author
    • 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
  9. dmitry-shibanov commented on Jan 12, 2023

    @dmitry-shibanov
    Contributor

    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

  10. Pavansai07784 commented on Jan 12, 2023

    @Pavansai07784
    Author

    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.

  11. 12 remaining items

  12. Liyouran-center commented on Apr 24, 2024

    @Liyouran-center

    我今天也遇到这个问题了,在我的两个自托管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:~# 
    

    现在有什么临时解决方法吗?

  13. tobiashochguertel commented on Apr 30, 2024

    @tobiashochguertel

    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
    
  14. bjoern-js commented on May 24, 2024

    @bjoern-js

    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/"
    
  15. v-gowridurgad commented on Oct 25, 2024

    @v-gowridurgad
    Contributor

    Hi @Pavansai07784, Apologies for the delayed response. Could you please confirm if the issue is still relevant for you? I have tested from my end and was able to successfully install Python. Please see the attached screenshot for reference.
    Thank you!

    Screenshot 2024-10-24 at 4 38 46 PM
  16. lkchava commented on Nov 4, 2024

    @lkchava

    Surprised to see still we don't have any solution. We are also running into same issue.

    Error: The version '3.12.0' 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

    Update: This issue occurred in a scenario of docker-in-docker. The way we resolved is to install it with apt commands.

  17. v-gowridurgad commented on Nov 6, 2024

    @v-gowridurgad
    Contributor

    Hello Everyone, Please note that Python distributions are only available for environments that GitHub Actions hosted runners support. For Further information, you can refer to this document . Linux distributions such as redhat, centos7, Amazon and Debian are not supported by setup-python. Thank you for your understanding.

  18. v-gowridurgad commented on Nov 18, 2024

    @v-gowridurgad
    Contributor

    Hi @Pavansai07784,
    This is a gentle reminder that we are awaiting your response on this issue. If there are no further queries, please let us know if we can proceed with closing it.

  19. v-gowridurgad commented on Nov 25, 2024

    @v-gowridurgad
    Contributor

    Hi @Pavansai07784, Due to inactivity, I'm going to close this issue for now. Please feel free to reopen this issue or create a new one if necessary. Thank you.

  20. israelbgf commented on Feb 7, 2025

    @israelbgf

    Hello Everyone, Please note that Python distributions are only available for environments that GitHub Actions hosted runners support. For Further information, you can refer to this document . Linux distributions such as redhat, centos7, Amazon and Debian are not supported by setup-python. Thank you for your understanding.

    I'm having the same problem using the officially supported Github ARC (k8s self-hosted runner). Should it fail with that too?

  21. shachafl commented on Mar 27, 2025

    @shachafl

    For me the issue was not using quotes around the python version.
    Got error when using python-version: 3.10
    No error when adding single quotes python-version: '3.10'

    The funny thing is that it worked without issues with python 3.9, and when I updated to 3.10 I got the error of not finding python version 3.1 (like it only reads one digit for the minor version).

  22. Toni-SM commented on Mar 29, 2025

    @Toni-SM

    Just for search records using Failed to resolve version 3.1 from manifest for Python 3.10,
    the solution is the one described by @shachafl in #585 (comment)

    For me the issue was not using quotes around the python version.
    Got error when using python-version: 3.10
    No error when adding single quotes python-version: '3.10'


    The following configuration

    - name: Set up Python
      uses: actions/setup-python@v5
      with:
        python-version: 3.10
    

    was solved as follows, where python-version was treated as float (thus dropping the leading zero) 🤦

    Run actions/setup-python@v5
      with:
        python-version: 3.1
        check-latest: true
        token: ***
        update-environment: true
        allow-prereleases: false
        freethreaded: false
    Installed versions
      Failed to resolve version 3.1 from manifest
      Version 3.1 was not found in the local cache
      Error: The version '3.1' with architecture 'x64' was not found for Ubuntu
    
  23. added a commit that references this issue on Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions