Skip to content

RuntimeError: Could not find libc2pa_c.so in any of the search paths (Platform: x86_64-unknown-linux-gnu, Architecture: x86_64) #187

Description

@mimideannointed-star

Hi
I'm encountering a persistent runtime error when using c2pa-python==0.27.1 inside an AWS Fargate (x86_64) container.
Despite documentation and changelogs stating that Linux x86_64 support was added in recent releases, the package still fails to locate the bundled libc2pa_c.so library.

RuntimeError: Could not find libc2pa_c.so in any of the search paths
(Platform: x86_64-unknown-linux-gnu, Architecture: x86_64)

This happens consistently on AWS Fargate, even though:
The image runs python:3.10-bullseye (Debian, glibc)
The architecture is confirmed as x86_64
The container installs c2pa-python==0.27.1 directly from PyPI

Environment:
Python: 3.10
c2pa-python: 0.27.1
Base image: python:3.10-bullseye
Platform: AWS Fargate (Linux, x86_64)
OS/Arch inside container: Linux x86_64 GNU
Deployment method: Docker + ECS task definition (runtime_platform.cpu_architecture = X86_64)

dockerfile

FROM python:3.10-bullseye

RUN apt-get update && apt-get install -y --no-install-recommends
libgl1
libglib2.0-0
libopenblas-dev
liblapack-dev
libjpeg-dev
zlib1g-dev
curl
unzip
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY requirements.txt .

RUN pip install --upgrade pip setuptools wheel

RUN pip install --no-cache-dir "c2pa-python"

RUN pip install --no-cache-dir -r requirements.txt

COPY app/ ./app/

Activity

  1. tmathern commented on Oct 23, 2025

    @tmathern
    Collaborator

    I think the error reported is misleading (I'll fix that in a follow-up PR).

    The native library needs GLIBC 2.32. Looking at the version you use in your Docker, it has 2.31. So a later version will work.
    For instance, I used the following Docker to debug, and c2pa-python loaded there:

    FROM python:3.10-bookworm
    
    RUN apt-get update && apt-get install -y --no-install-recommends \
        libgl1 \
        libglib2.0-0 \
        libopenblas-dev \
        liblapack-dev \
        libjpeg-dev \
        zlib1g-dev \
        curl \
        unzip \
        && rm -rf /var/lib/apt/lists/*
    
    WORKDIR /app
    COPY requirements.txt .
    
    RUN pip install --upgrade pip setuptools wheel
    
    RUN pip install --no-cache-dir "c2pa-python"
    
    # Verify c2pa-python package loads correctly
    RUN python -c "import c2pa; print(f'c2pa version: {c2pa.__version__}'); print('c2pa-python loaded successfully')"
    

    Can you update to a newer version?

  2. mimideannointed-star commented on Oct 23, 2025

    @mimideannointed-star
    Author

    Thank you i am no longer getting that error :)

  3. tmathern commented on Oct 24, 2025

    @tmathern
    Collaborator

    The library loading fix also got merged, it will be part of next release.

  4. self-assigned this
    on Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions