Skip to content

python module Incompatible with old glibc #155

@noajshu

Description

@noajshu

Describe the issue

Many systems use older glibc, on these we get something like

Python 3.11.13 (main, Aug 28 2025, 15:10:45) [GCC 8.5.0 20210514 (Red Hat 8.5.0-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tesseract_decoder import TesseractSinterDecoder
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by /home/noajshu/stimenv/lib64/python3.11/site-packages/tesseract_decoder.so)

Gemini suggests the following fix:
Use a "Manylinux" Build (If you control the package)
If you are the developer of tesseract_decoder and built this wheel on your personal machine (e.g., a recent Ubuntu or Arch Linux laptop) and then copied it to this server, this error is expected.

To make Python wheels that work on older Linux servers (like RHEL 8), you must build them using the Manylinux standard.

The Fix: Build your wheels inside a specialized Docker container provided by the Python Packaging Authority (PyPA).

Image to use: quay.io/pypa/manylinux_2_28_x86_64 (compatible with RHEL 8+).

What version of the software are you using?

No response

How can the issue be reproduced?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions