pantry
pantry copied to clipboard
Python setup fails in amazon linux 2 self hosted github runner
Context
I am using self hosted github runners which use amazon linux 2 as their operating system
Github action yaml
steps:
- uses: actions/checkout@v3
- uses: pkgxdev/setup@v1
with:
+: [email protected]
- name: python version
run: |
python --version
python3 --version
Error
The above action fails with the following error.
python: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by /home/ec2-user/.pkgx/python.org/v3.8.18/bin/../lib/libpython3.8.so.1.0)
python: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /home/ec2-user/.pkgx/python.org/v3.8.18/bin/../lib/libpython3.8.so.1.0)
Yes, aml2 uses a glibc one minor version older than Debian buster, which is what we build on. I've been trying to crack a glibc build so we can bypass this issue on older Linux glibcs, but it's tricky. Very tricky.
Ref: https://github.com/pkgxdev/pantry/pull/147