Title: hostedtoolcache not exists · Issue #489 · actions/setup-python · GitHub
Open Graph Title: hostedtoolcache not exists · Issue #489 · actions/setup-python
X Title: hostedtoolcache not exists · Issue #489 · actions/setup-python
Description: Description: Hi, github action failed with building a python package lanms-neo. According to the error log, the file Python.h not found because include dir /opt/hostedtoolcache/Python/3.7.13/x64/include/python3.7m not exists. Action vers...
Open Graph Description: Description: Hi, github action failed with building a python package lanms-neo. According to the error log, the file Python.h not found because include dir /opt/hostedtoolcache/Python/3.7.13/x64/in...
X Description: Description: Hi, github action failed with building a python package lanms-neo. According to the error log, the file Python.h not found because include dir /opt/hostedtoolcache/Python/3.7.13/x64/in...
Opengraph URL: https://github.com/actions/setup-python/issues/489
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hostedtoolcache not exists","articleBody":"\u003c!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->\r\n\u003c!--- Before opening up a new bug report, please make sure to check for similar existing issues -->\r\n\r\n**Description:**\r\nHi,\r\ngithub action failed with building a python package ` lanms-neo`. According to the error log, the file `Python.h` not found because include dir `/opt/hostedtoolcache/Python/3.7.13/x64/include/python3.7m` not exists.\r\n\r\n\r\n**Action version:**\r\nSpecify the action version\r\n2.295.0\r\n\r\n**Platform:**\r\n- [x] Ubuntu\r\n- [ ] macOS\r\n- [ ] Windows\r\n\r\n**Runner type:**\r\n- [x] Hosted\r\n- [ ] Self-hosted\r\n\r\n**Tools version:**\r\n\u003c!--- Please list all of the affected Python versions (`3.8.2`, etc.)-->\r\n\r\n**Repro steps:** \r\nA description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.\r\n\r\nfailed github action log: https://github.com/open-mmlab/mmdeploy/runs/7988673786?check_suite_focus=true\r\n\r\nsucceeded github action just a few days ago: https://github.com/open-mmlab/mmdeploy/runs/7911687136?check_suite_focus=true\r\n\r\ngithub workflow: https://github.com/open-mmlab/mmdeploy/blob/21775ce584cf9589ebade133e46d008ee60acf9d/.github/workflows/build.yml#L91\r\n\r\n**Expected behavior:**\r\nA description of what you expected to happen.\r\n\r\n**Actual behavior:**\r\nfailed with building ` lanms-neo` python package.\r\n\r\ngcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.7.13/x64/include/python3.7m -c flagcheck.cpp -o flagcheck.o -std=c++17\r\n\r\n```\r\n Building wheels for collected packages: lanms-neo\r\n Building wheel for lanms-neo (pyproject.toml): started\r\n Building wheel for lanms-neo (pyproject.toml): finished with status 'error'\r\n error: subprocess-exited-with-error\r\n \r\n × Building wheel for lanms-neo (pyproject.toml) did not run successfully.\r\n │ exit code: 1\r\n ╰─> [29 lines of output]\r\n running bdist_wheel\r\n running build\r\n running build_py\r\n creating build\r\n creating build/lib.linux-x86_64-cpython-37\r\n creating build/lib.linux-x86_64-cpython-37/lanms\r\n copying lanms/__init__.py -> build/lib.linux-x86_64-cpython-37/lanms\r\n running build_ext\r\n gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.7.13/x64/include/python3.7m -c flagcheck.cpp -o flagcheck.o -std=c++17\r\n building 'lanms._C' extension\r\n creating build/temp.linux-x86_64-cpython-37\r\n creating build/temp.linux-x86_64-cpython-37/lanms\r\n creating build/temp.linux-x86_64-cpython-37/lanms/csrc\r\n creating build/temp.linux-x86_64-cpython-37/lanms/csrc/clipper\r\n gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-install-llqxv5qc/lanms-neo_5d0f0b899c4343379f6fcb6c75e93813/lanms/csrc -I/tmp/pip-build-env-w6kvz5n0/overlay/lib/python3.7/site-packages/pybind11/include -I/opt/hostedtoolcache/Python/3.7.13/x64/include/python3.7m -c lanms/csrc/clipper/clipper.cpp -o build/temp.linux-x86_64-cpython-37/lanms/csrc/clipper/clipper.o -std=c++17 -fvisibility=hidden -g0\r\n lanms/csrc/clipper/clipper.cpp: In member function ‘void ClipperLib::Clipper::FixupFirstLefts3(ClipperLib::OutRec*, ClipperLib::OutRec*)’:\r\n lanms/csrc/clipper/clipper.cpp:3665:13: warning: unused variable ‘firstLeft’ [-Wunused-variable]\r\n OutRec* firstLeft = ParseFirstLeft(outRec->FirstLeft);\r\n ^~~~~~~~~\r\n gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-install-llqxv5qc/lanms-neo_5d0f0b899c4343379f6fcb6c75e93813/lanms/csrc -I/tmp/pip-build-env-w6kvz5n0/overlay/lib/python3.7/site-packages/pybind11/include -I/opt/hostedtoolcache/Python/3.7.13/x64/include/python3.7m -c lanms/csrc/lanms.cpp -o build/temp.linux-x86_64-cpython-37/lanms/csrc/lanms.o -std=c++17 -fvisibility=hidden -g0\r\n In file included from /tmp/pip-build-env-w6kvz5n0/overlay/lib/python3.7/site-packages/pybind11/include/pybind11/detail/../attr.h:13:0,\r\n from /tmp/pip-build-env-w6kvz5n0/overlay/lib/python3.7/site-packages/pybind11/include/pybind11/detail/class.h:12,\r\n from /tmp/pip-build-env-w6kvz5n0/overlay/lib/python3.7/site-packages/pybind11/include/pybind11/pybind11.h:13,\r\n from lanms/csrc/lanms.cpp:1:\r\n /tmp/pip-build-env-w6kvz5n0/overlay/lib/python3.7/site-packages/pybind11/include/pybind11/detail/../detail/common.h:212:10: fatal error: Python.h: No such file or directory\r\n #include \u003cPython.h>\r\n ^~~~~~~~~~\r\n compilation terminated.\r\n error: command '/usr/bin/gcc' failed with exit code 1\r\n [end of output]\r\n \r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\n ERROR: Failed building wheel for lanms-neo\r\nERROR: Could not build wheels for lanms-neo, which is required to install pyproject.toml-based projects\r\n```","author":{"url":"https://github.com/RunningLeon","@type":"Person","name":"RunningLeon"},"datePublished":"2022-08-24T08:12:51Z","url":"https://github.com/actions/setup-python/issues/489"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:e72dd3e3-4820-43ee-daa0-4794e5f30072 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4C6:1F58:735A3:96221:6B026DBB |
| html-safe-nonce | 261f6c08c145481841a3b643cea0b2bd17383906977390311a15e47cd10f5dcc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEM2OjFGNTg6NzM1QTM6OTYyMjE6NkIwMjZEQkIiLCJ2aXNpdG9yX2lkIjoiOTEzMzA1MzAyMTA1ODY1NzcyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc57eceac1278b207482ace070895bb27f5bc0ffac62abbcf67b6e2c7694d8f5 |
| hovercard-subject-tag | issue:1349046737 |
| 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/489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0be54cfcbc8c5358d6835d82ea01964918ec6fdcfcc2c1d3cf43dedbbb7cc78d/actions/setup-python/issues/489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0be54cfcbc8c5358d6835d82ea01964918ec6fdcfcc2c1d3cf43dedbbb7cc78d/actions/setup-python/issues/489 |
| og:image:alt | Description: Hi, github action failed with building a python package lanms-neo. According to the error log, the file Python.h not found because include dir /opt/hostedtoolcache/Python/3.7.13/x64/in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RunningLeon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width