Skip to content

Could not find libc2pa_c.so in any of the search paths on arm64 architecture #117

@mullevik

Description

@mullevik

Hello, after you have closed #101, I tried to add c2pa-python==0.10.0 to my CI workflow.

I am getting an import error specifically on an AWS graviton instance (ARM64 based).

RuntimeError: Could not find libc2pa_c.so in any of the search paths

Here is a minimal example representing my CI Dockerfile:

FROM python:3.12-slim-bookworm

RUN apt-get update
RUN pip install --upgrade pip

RUN pip install c2pa-python==0.10.0

CMD python -c "import c2pa; print('c2pa imported')"
  • this dockerfile works fine on x86 architecture
  • this dockerfile reproduces the error when running on arm64 architecture

I have limited knowledge about rust and cpu architectures so I am not sure how to deal with this problem or what actually causes it. Is there anything I can do to fix it on my end?

Side note:

I also have a macos machine with arm64 architecture where the c2pa-python==0.10.0 package just works natively. So I guess there is not a big issue with the architecture itself, just with the build process for linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions