New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python:3.11 image ImportError: libffi.so.6: cannot open shared object file #133
Comments
Thanks for flagging @vhnguyenae. Are you 100% sure that the latest Python 3.11 image doesn't resolve this? The error makes sense for the issue in #127 / #128 / #129 but should work OK with the latest image. Please do provide as much detail as you can to reproduce the issue. |
Hi Jonathan, thanks for looking into the issue. I can't reproduce the error any more. |
Edit: In my case - for Python 3.12 - updating Same issue now with CDK and Python 3.12 when running inside GitHub Actions. It fails during It was working with no issues on Python 3.9. See the GitHub action definition: Action definition cdk-synth:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==1.4.2
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'poetry'
- name: Install project dependencies
run: poetry install --all-extras
- name: Set up CDK
run: npm install --global aws-cdk@2.115.0
- name: Synth
run: cdk synth $CDK_STACK See logs: Logs
Fails with the following error:
|
I just pulled down the latest image -- post the fix that was mentioned in other issues -- and still got this error. |
In my case - for Python 3.12 - updating |
Hi, our Lambda Python 3.11 function failed after December 5th with the error:
I'm aware of similar issues opened and closed in #127, #128, and #129. I tried again this morning with the latest image
public.ecr.aws/lambda/python:3.11
, and the issue still persists.However, the error is raised only if the CDK stack (including the lambda) is built and deployed by CodeCatalyst. The deployment step is run with the CodeCatalyst Amazon EC2 for Linux (Arm64) image. If I build and deploy the CDK stack from my M2 MacBook, then the error doesn't occur.
So, I think the updated version of the Python lambda base image published on the 5th has something that is not compatible with the CodeCatalyst image when doing library packaging for the Docker container of the Lambda.
Since the trace is empty when the error happens, I have no clue how to debug. But it occurred only after December 5th, so I assume it's due to a change from that version. My current workaround is using the old image tag (
public.ecr.aws/lambda/python:3.11.2023.11.18.02
). If you need more information to investigate the issue, I'm happy to provide more details.Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: