[BUG] lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by Pillow.libs/libpng16-cb42a3c6.so.16.39.0)
OssenFoss opened this issue · comments
Describe the bug
Using Klayers for Pillow fails on import
[ERROR] Runtime.ImportModuleError: Unable to import module 'index': /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by Pillow.libs/libpng16-cb42a3c6.so.16.39.0)
Layer Version ARN:
Specific Layer ARN that didn't work (let's us know which version, region etc).
arn:aws:lambda:us-east-2:770693421928:layer:Klayers-p38-Pillow:7
tried version 6 as well - same result
Framework:
Using Amplify
Additional context
Add any other context about the problem here.
Checked the python runtime - Python 3.8
Checked the Architecture - x86_64
Ensured Pillow is NOT installed in my function layer.
Changed python runtime to - Python 3.7
arn:aws:lambda:us-east-2:113088814899:layer:Klayers-python37-Pillow:11
This import works!