Comments (4)
Hello @paolostancato
Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback.
from setup-python.
Hello @paolostancato, the gcc compiler is looking for the Python.h file in the directory specified by /opt/hostedtoolcache/Python/3.11.9/x64/include/python3.11, but the file is actually located in /home/runner/_work/_tool/Python/3.11.9/x64/include/python3.11.
This discrepancy could be due to a misconfiguration of the environment variables . The AGENT_TOOLSDIRECTORY and RUNNER_TOOL_CACHE should be set such that they point to the correct directories where the necessary tools and files are located.
The RUNNER_TOOL_CACHE is a predefined environment variable in GitHub Actions runners that directs to a directory for caching tools and dependencies, facilitating reuse across workflow runs. This is elaborated in the default environment variables documentation.
For self-hosted runners on Linux and Windows, the AGENT_TOOLSDIRECTORY environment variable allows the specification of a custom directory for tool installations and caching, as detailed in the advanced usage documentation.
When you designate a custom directory with AGENT_TOOLSDIRECTORY, the RUNNER_TOOL_CACHE no longer defaults to the runner's preset directory.
One of the possible workaround is mentioned below
In a self-hosted runner setup on Kubernetes, we might need to adjust the setup to ensure that these environment variables are correctly set. This could involve modifying the runner's configuration or adjusting the Kubernetes deployment to correctly mount the necessary directories.
spec:
template:
spec:
containers:
- name: github-runner
image: my-docker/github-actions-runner:latest
env:
- name: AGENT_TOOLSDIRECTORY
value: ""/path/to/tools""
- name: RUNNER_TOOL_CACHE
value: ""/path/to/cache""
from setup-python.
Hello @paolostancato, Please confirm the above information resolved the issue.
from setup-python.
Hi @aparnajyothi-y , thanks for your prompt response, I'll close the issue because I couldn't reproduce it again
from setup-python.
Related Issues (20)
- Slow download HOT 4
- Caching conflicts when using `extra` dependencies HOT 2
- bad setuptools installation in actions/setup-python@v5 HOT 3
- my_script.py HOT 2
- Recommendations for caching poetry dependencies causes the wrong python version to be used for poetry install HOT 10
- Allow passing installer args to the Windows MSI HOT 1
- Importing psycopg2 (installed via pip) reports: ImportError: /opt/hostedtoolcache/.../3.13.0-alpha.6/.../psycopg2/_psycopg.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyInterpreterState_Get HOT 1
- macos-14-arm64 with provisionner 2.0.361.1+33a726b54233caea13315dba3887b0e7c5a1d482 can no longer load Python extension HOT 6
- Python 3.8 and 3.9 not found on macOS HOT 11
- Python Path is always first HOT 1
- no such option: --root-user-action HOT 23
- Failing with current ubuntu:latest container HOT 7
- x64 python fails on arm64 images HOT 5
- python3.7-arm64 is not available HOT 12
- Intermittent failures during Post Setup Python step for MacOS HOT 4
- Unable to locate 'pip' when using cache HOT 7
- python-3.7.17-darwin-x64 has broken readline module due missing libncurses HOT 1
- `setup-python` failing for 3.8 on `macos-latest` HOT 5
- Fails on Rocky Linux distro, missing `lsb_release` HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-python.