Title: Fails while building dependencies, since the runner can't find the include path · Issue #507 · actions/setup-python · GitHub
Open Graph Title: Fails while building dependencies, since the runner can't find the include path · Issue #507 · actions/setup-python
X Title: Fails while building dependencies, since the runner can't find the include path · Issue #507 · actions/setup-python
Description: Description: I have a workflow that builds and test my Python project. In poetry installation steps gcc can't find the Python header/s and the build fails. When I checked the /opt/hostedtoolcache/Python/3.8.13/x64/include/python3.8, ther...
Open Graph Description: Description: I have a workflow that builds and test my Python project. In poetry installation steps gcc can't find the Python header/s and the build fails. When I checked the /opt/hostedtoolcache/P...
X Description: Description: I have a workflow that builds and test my Python project. In poetry installation steps gcc can't find the Python header/s and the build fails. When I checked the /opt/hostedtoolcac...
Opengraph URL: https://github.com/actions/setup-python/issues/507
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fails while building dependencies, since the runner can't find the include path","articleBody":"**Description:**\r\nI have a workflow that builds and test my Python project. In poetry installation steps `gcc` can't find the Python header/s and the build fails. When I checked the `/opt/hostedtoolcache/Python/3.8.13/x64/include/python3.8`, there is no such directory. \r\n\r\n**Action version:**\r\n4\r\n\r\n**Platform:**\r\n- [x] Ubuntu\r\n- [ ] macOS\r\n- [ ] Windows\r\n\r\n**Runner type:**\r\n- [ ] Hosted\r\n- [x] Self-hosted\r\n\r\n**Tools version:**\r\n3.7.13\r\n3.8.13\r\n\r\n**Repro steps:** \r\n```yaml\r\njobs:\r\n test:\r\n runs-on: [self-hosted, xxxx]\r\n strategy:\r\n fail-fast: false\r\n matrix:\r\n python-version: [3.7, 3.8]\r\n name: flake8 and pytest on Python ${{ matrix.python-version }}\r\n steps:\r\n - uses: actions/checkout@v3\r\n with:\r\n token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}\r\n fetch-depth: 0\r\n\r\n - name: Set up Python ${{ matrix.python-version }}\r\n id: setup-python\r\n uses: actions/setup-python@v4\r\n with:\r\n python-version: ${{ matrix.python-version }}-dev # also tried without dev \r\n update-environment: true # also tried without this line.\r\n\r\n - name: Setup Poetry\r\n run: |\r\n curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.1.14 python${{ matrix.python-version }}\r\n\r\n - name: Load cached poetry packages\r\n id: cached-poetry-dependencies\r\n uses: actions/cache@v2\r\n with:\r\n path: .venv\r\n key: poetry-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}\r\n\r\n - name: Poetry install python packages\r\n run: |\r\n CPATH=$pythonLocation/include/python${{ matrix.python-version }}m\r\n echo \"CPATH=$CPATH\" >> $GITHUB_ENV\r\n poetry env use ${{ matrix.python-version }}\r\n poetry install --no-interaction\r\n if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'\r\n```\r\n\r\n**Expected behavior:**\r\nInstalled dependencies.\r\n\r\n**Actual behavior:**\r\nError: \r\n```bash\r\nCPATH=$pythonLocation/include/python3.7\r\n echo \"CPATH=$CPATH\" >> $GITHUB_ENV\r\n poetry install --no-interaction --no-dev\r\n shell: /bin/bash -e {0}\r\n env:\r\n pythonLocation: /home/***/actions-runner/_work/_tool/Python/3.7.13/x64\r\n PKG_CONFIG_PATH: /home/***/actions-runner/_work/_tool/Python/3.7.13/x64/lib/pkgconfig\r\n Python_ROOT_DIR: /home/***/actions-runner/_work/_tool/Python/3.7.13/x64\r\n Python2_ROOT_DIR: /home/***/actions-runner/_work/_tool/Python/3.7.13/x64\r\n Python3_ROOT_DIR: /home/***/actions-runner/_work/_tool/Python/3.7.13/x64\r\n LD_LIBRARY_PATH: /home/***/actions-runner/_work/_tool/Python/3.7.13/x64/lib \r\n...\r\ngcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-env-7iw6i3c7/overlay/lib/python3.8/site-packages/numpy/core/include -I./common -I/home/***/actions-runner/_work/datapipeline/datapipeline/.venv/include -I/opt/hostedtoolcache/Python/3.8.13/x64/include/python3.8 -c ./common/maskApi.c -o build/temp.linux-x86_64-cpython-38/./common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99\r\npycocotools/_mask.c:6:10: fatal error: Python.h: No such file or directory\r\n #include \"Python.h\"\r\n ^~~~~~~~~~\r\n compilation terminated.\r\n...\r\n","author":{"url":"https://github.com/blgnksy","@type":"Person","name":"blgnksy"},"datePublished":"2022-09-23T10:18:30Z","url":"https://github.com/actions/setup-python/issues/507"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:564dcfcf-897e-f8f8-297a-3947fe7be276 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBF8:37BD05:76ACE3:9C4267:6AF83E5E |
| html-safe-nonce | 7a07c74e2b5ac41d41bae23ac943afa6b4ddbc556e88b8232e7e537dc8a5f710 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkY4OjM3QkQwNTo3NkFDRTM6OUM0MjY3OjZBRjgzRTVFIiwidmlzaXRvcl9pZCI6IjkwNDkzMzExNDE5NTI2ODM2MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f38432f6f8178919920b76e6a066e1f7b0bb7178164ccd9b17e96a629cb44d4 |
| hovercard-subject-tag | issue:1383589322 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/507/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11752126769f880dd522946a00776669bd81f2f5337e2ca40d7238904e016c16/actions/setup-python/issues/507 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11752126769f880dd522946a00776669bd81f2f5337e2ca40d7238904e016c16/actions/setup-python/issues/507 |
| og:image:alt | Description: I have a workflow that builds and test my Python project. In poetry installation steps gcc can't find the Python header/s and the build fails. When I checked the /opt/hostedtoolcache/P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blgnksy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width