AWS Lambda Layer

Product: PDFTron Linux SDK

Product Version: Python 3.5+ (32-bit, 64-bit x86, 64-bit ARM)

Please give a brief summary of your issue: Unable to import from AWS Lambda Layer

Please describe your issue and provide steps to reproduce it:
Trying to use the compiled Python library (from pip) as a AWS Lambda Layer. However, getting the below error when we try to import the library.
from PDFNetPython3 import *

Error: “Unable to import module ‘index’: /opt/python/PDFNetPython3/_PDFNetPython.so: invalid ELF header”

invalid ELF means that the architecture got mixed up.

(32-bit, 64-bit x86, 64-bit ARM)

We offer both 64-bit x86 and 64-bit ARM builds, make sure that you are deploying the correct PDFNet binary that matches your target Linux distro.

Is there a manylinux version that is compatible with AWS Lambda (Amazon Linux 2) ARM64 architecture? The cp39_aarch64 version available in PyPI requires glibC_2.27, but that is not available in Lambda currently (I belive 2.26 is what is currently available).

The team just finished making an AWS Lambda ARM64 compatible yesterday.

Please download and let us know how it works for you.

Release channel: PDFTron Systems Inc. | Nightly

Latest official builds, and Release channel, are ready for production usage, however the developer channel builds do not get the same amount of testing and can be in a state of change.