-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
self-hosted tools cache setup not working automatically on Linux & Mac with v2 #92
Comments
Thanks for opening this issue! What happens if you navigate into one of the directories and attempt to run Python from there? If you go to Based on the logs, if appears the setup and download goes through successfully, however it later can't find what it installed... 🤔 I'm assuming you're using |
@konradpabjan, thanks for responding! This is the result I got when trying 3.7.7 directly
I am able open the python shell when calling python directly from the bin folder.
Also runner user has the right permission to modify content in the folder
|
|
standby... i have a repo on another machine |
Same issue for me 3.x works fine and installs 3.8, but if I specify 3.7.x or 3.7.7 it fails even though it did download and executing python from the installed directory invokes the python shell /opt/hostedtoolcache/Python/3.7.7/x64/bin$ ./python --version but still getting |
I also can confirm that 2.7 and 3.6 works for me because they are already pre-installed on the server
|
Same issue here as of today ✋
|
Same problem with self-hosted agent running on Amazon Linux 2. |
@estraph Amazon Linux won't work. That said, I am still having this issue.
|
Same issue using the tool act
|
Same here just like williamdes
|
Same here calling setup-python on a self-hosted agent to allow for a custom 'pip install' command. The lines below are in the codeql-analysis.yml file, based on the comments on this page and the setup-python reference page: https://github.com/actions/setup-python#using-setup-python-with-a-self-hosted-runner. Current runner version: '2.273.5'
Below is the error message from the logs:
|
@timdhughes I believe you're hitting that error because you're on Amazon Linux 2. From the doc you linked:
The reason for this limitation is that the binaries are pre-built targeting Ubuntu. |
@brcrista Amazon Linux 2 (Red Hat Enterprise Linux 7) looks to be supported for self-hosted runners from this page: |
Yes, self-hosted runners are supported on RHEL but the precompiled |
@brcrista is there a possibility of adding RHEL support or is that not something that's on the horizon? |
No, we aren't prioritizing this right now. |
- attempt to use system python i - the bug seems to be reported but not fixed: - https://github.com/actions/setup-python/issues/92��
This also happens in the vanilla debian image in google cloud |
Hi @poolpitako, |
I am very sorry but I don't remember what was my issue and I moved on. |
The issue is related to this PR #89
I am still getting an error when using setup-python v2 on self-hosted runners on ubuntu18.04
I have set
AGENT_TOOLSDIRECTORY
in the config fileI can see it created some folders and files under
/opt/hostedtoolcache
The text was updated successfully, but these errors were encountered: