Skip to content

Python Linux x86_64 wheel on PyPI is tagged manylinux_2_31 but it actually requires glibc 2.34+ #19

Backlog

Description

@edgarrmondragon

On a system with glibc 2.31–2.33 (Debian 11, Ubuntu 20.04), pip installs it without complaint and then import/load fails.

Quick MRE:

$ docker run -q --rm \
    --platform linux/amd64 python:3.13-slim-bullseye sh \
    -c 'pip install -q --only-binary=:all: yamlstar==0.1.28 2>/dev/null && python -c "import yamlstar; yamlstar.YAMLStar()"'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import yamlstar; yamlstar.YAMLStar()
                     ~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/yamlstar/__init__.py", line 291, in __init__
    self._libyamlstar = ctypes.CDLL(self._libyamlstar_path)
                        ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/ctypes/__init__.py", line 390, in __init__
    self._handle = _dlopen(self._name, mode)
                   ~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/local/lib/python3.13/site-packages/yamlstar/libyamlstar/libyamlstar.so)

"GLIBC_2.32 not found" is reported, but listing the library's glibc symbols shows the real requirement is 2.34:

  • GLIBC_2.32: pthread_getattr_np, pthread_sigmask
  • GLIBC_2.34: dlopen, dlsym, dlclose, dlerror, pthread_create, pthread_key_create, pthread_setspecific, pthread_attr_getstack, pthread_attr_getstacksize, res_search

Who it affects

  • ✅ glibc ≥ 2.34 (Ubuntu 22.04+, Debian 12+, RHEL 9): works.
  • ❌ glibc 2.31–2.33 (Ubuntu 20.04, Debian 11): pip accepts the wheel because of the tag, then loading the library fails.
  • 🤷‍♂️ glibc < 2.31 (e.g. RHEL 8): pip correctly skips the wheel. Those systems get the sdist instead, which doesn't include the library, so they need libyamlstar installed separately.

The appropriate fix is probably to build x86_64 in an ubuntu:20.04 container so the manylinux_2_31 tag can be preserved.

Otherwise, change the tag to manylinux_2_34_x86_64 and drop support for Ubuntu 20.04 (no security updates since 2025-05, LTS through 2023-04) and Debian 11 (no security updates since 2024-08, ELTS through 2031-06).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions