René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:564dcfcf-897e-f8f8-297a-3947fe7be276
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBF8:37BD05:76ACE3:9C4267:6AF83E5E
html-safe-nonce7a07c74e2b5ac41d41bae23ac943afa6b4ddbc556e88b8232e7e537dc8a5f710
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkY4OjM3QkQwNTo3NkFDRTM6OUM0MjY3OjZBRjgzRTVFIiwidmlzaXRvcl9pZCI6IjkwNDkzMzExNDE5NTI2ODM2MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8f38432f6f8178919920b76e6a066e1f7b0bb7178164ccd9b17e96a629cb44d4
hovercard-subject-tagissue:1383589322
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/507/issue_layout
twitter:imagehttps://opengraph.githubassets.com/11752126769f880dd522946a00776669bd81f2f5337e2ca40d7238904e016c16/actions/setup-python/issues/507
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/11752126769f880dd522946a00776669bd81f2f5337e2ca40d7238904e016c16/actions/setup-python/issues/507
og:image:altDescription: 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameblgnksy
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/507#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F507
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F507
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/507
Reloadhttps://github.com/actions/setup-python/issues/507
Reloadhttps://github.com/actions/setup-python/issues/507
actionshttps://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Codehttps://github.com/actions/setup-python
Issues37 (37)https://github.com/actions/setup-python/issues
Pull requests24 (24)https://github.com/actions/setup-python/pulls
Actionshttps://github.com/actions/setup-python/actions
Projectshttps://github.com/actions/setup-python/projects
Security and qualityhttps://github.com/actions/setup-python/security
Insightshttps://github.com/actions/setup-python/pulse
https://github.com/actions/setup-python
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/507
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/507
Fails while building dependencies, since the runner can't find the include pathhttps://github.com/actions/setup-python/issues/507#top
https://github.com/vsafonkin
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/blgnksy
blgnksyhttps://github.com/blgnksy
on Sep 23, 2022https://github.com/actions/setup-python/issues/507#issue-1383589322
blgnksyhttps://github.com/blgnksy
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Sep 23, 2022https://github.com/actions/setup-python/issues/507#event-7446157304
https://github.com/blgnksy
blgnksyhttps://github.com/blgnksy
on Sep 23, 2022https://github.com/actions/setup-python/issues/507#issuecomment-1256099845
https://github.com/vsafonkin
vsafonkinhttps://github.com/vsafonkin
on Sep 26, 2022https://github.com/actions/setup-python/issues/507#issuecomment-1257606830
@blgnksyhttps://github.com/blgnksy
vsafonkinhttps://github.com/vsafonkin
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Sep 26, 2022https://github.com/actions/setup-python/issues/507#event-7456051405
vsafonkinhttps://github.com/vsafonkin
on Sep 27, 2022https://github.com/actions/setup-python/issues/507#event-7465490559
https://github.com/vsafonkin
vsafonkinhttps://github.com/vsafonkin
on Oct 4, 2022https://github.com/actions/setup-python/issues/507#issuecomment-1266794406
@blgnksyhttps://github.com/blgnksy
https://github.com/panticmilos
panticmiloshttps://github.com/panticmilos
on Oct 10, 2022https://github.com/actions/setup-python/issues/507#issuecomment-1272984741
@blgnksyhttps://github.com/blgnksy
https://github.com/blgnksy
blgnksyhttps://github.com/blgnksy
on Oct 12, 2022https://github.com/actions/setup-python/issues/507#issuecomment-1276199402
https://github.com/vsafonkin
vsafonkinhttps://github.com/vsafonkin
on Oct 12, 2022https://github.com/actions/setup-python/issues/507#issuecomment-1276294685
@blgnksyhttps://github.com/blgnksy
vsafonkinhttps://github.com/vsafonkin
completedhttps://github.com/actions/setup-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 12, 2022https://github.com/actions/setup-python/issues/507#event-7572580365
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-python/issues/507
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/507
vsafonkinhttps://github.com/vsafonkin
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.