Skip to content

`GLIBC_2.29' not found for python 3.10.8 #2162

@mzwiesler

Description

@mzwiesler

Bug Report

  • At what date and time did you most recently experience the problem?

Started when manually upgrading the python version used by the mcr.microsoft.com/oryx/build:latest image from 3.8.16 to 3.10.8.

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.

Github Workflow and Locally

  • What happened?

In our project we are using poetry for dependency management and FastApi to create a web app which we want to deploy to Azure App Service. For we first build the app as described in the readme with the following Github workflow:

env:
  LANG: en_US.UTF-8
  PYTHON_VERSION: 3.10.8

jobs:
  build-oryx:
    runs-on: azure-runners
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Build
        run: |
          docker run \
            -e PYTHON_VERSION \
            -v "$PWD:/repo" \
            mcr.microsoft.com/oryx/build \
            oryx build /repo

Note: The azure-runner is a self-hosted GitHub Actions runners based on official summerwind/actions-runner-dind image based on ubuntu:20.04. Here python 3.8.10 is installed but we also tried with python version 3.10.8 using action/setup-python.

However, this returns the following error (within GitHub action and running it locally):

/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)

Background

Due to the new poetry version on pip it is now depending on urrlib3 >= 2 which resulted in an SSL error ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0l 10 Sep 2019'. See: https://github.com/urllib3/urllib3/issues/2168. Hence, since it is not possible to adjust the poetry version used by mcr.microsoft.com/oryx/build and the only option was to upgrade python to version 3.10.x as described in urllib3. However, this returns the `GLIBC_2.29' not found for python 3.10.8 error which also occurs for version 3.10.0 and 3.10.4.

Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20230904.1, Commit: f2d28cc9e92250b08ae08ccedf3b64dc4944b762, ReleaseTagName: 20230904.1

Build Operation ID: 84e78571426392ca
Repository Commit : 533b867cc7bb61850426cf37b9565816581bfca6
OS Type           : stretch
Image Type        : full

Detecting platforms...
Detected following platforms:
  python: 3.10.8
Version '3.10.8' of platform 'python' is not installed. Generating script to install it...


Source directory     : /repo
Destination directory: /repo


Downloading and extracting 'python' version '3.10.8' to '/tmp/oryx/platforms/python/3.10.8'...
Detected image debian flavor: stretch.
Downloaded in 17 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: python...
Done in 19 sec(s).

Python Version: /tmp/oryx/platforms/python/3.10.8/bin/python3.10
Creating directory for command manifest file if it does not exist
Removing existing manifest file
Python Virtual Environment: pythonenv3.10
Creating virtual environment...
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)
/tmp/oryx/platforms/python/3.10.8/bin/python3.10: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /tmp/oryx/platforms/python/3.10.8/lib/libpython3.10.so.1.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions