Skip to content
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

"'GLIBC_2.38' not found" when installing Python 3.10 on container derived from python:3.10-slim #1013

Open
2 of 5 tasks
lpascal-ledger opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@lpascal-ledger
Copy link

Hello there 👋 Thanks for the action, very useful! We've encountered a strange bug today:

Description:

We're using setup-python in a matrix to test our product on several Python versions.

The tests were running in a container derived from python:3.9-slim, where we previously installed all our tools. We were running tests with Python 3.8, 3.9, 3.10 and 3.11 and all was working fine.

Today we updated this image to python:3.10-slim, but now when we setup Python 3.10, python crashes when invoked.

Our tests also run with Python 3.11 setup which does not trigger this issue.

Action version:

actions/setup-python@v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:

I've tried and cornered the issue in the following workflow which triggers the bug:

name: Debug
on:
  workflow_dispatch:
  push:

jobs:
  not_working:
    runs-on: ubuntu-latest
    container:
      image: python:3.10-slim
    steps:
      - uses: actions/setup-python@v5
        with:
          python-version: "3.10"
      - run: python

An example of this failing workflow can be found here.

Expected behavior:

Python can be invoked without error.

Actual behavior:

When invoked, python crashes with the following errors:

python: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /__t/Python/3.10.16/x64/lib/libpython3.10.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by /__t/Python/3.10.16/x64/lib/libpython3.10.so.1.0)
Error: Process completed with exit code 1.
@lpascal-ledger lpascal-ledger added bug Something isn't working needs triage labels Jan 22, 2025
@lpascal-ledger lpascal-ledger changed the title "GLIBC_2.38' not found" when installing Python 3.10 on container derived from python:3.10-slim` "'GLIBC_2.38' not found" when installing Python 3.10 on container derived from python:3.10-slim Jan 22, 2025
@priya-kinthali
Copy link
Contributor

Hello @lpascal-ledger👋,
Thank you for reporting this issue. We will investigate it and get back to you as soon as we have some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants