aws / aws-lambda-base-images

Apache License 2.0
648 stars 107 forks source link

Glibc 2.17 on python3.7 image. Should be Glibc 2.26. #5

Closed patrickodpt closed 3 years ago

patrickodpt commented 3 years ago

I encountered this error running TF 1.14.0 on amazon/aws-lambda-python:3.7 :

ImportError: /lib64/libm.so.6: version `GLIBC_2.23' not found (required by /var/task/tensorflow/python/_pywrap_tensorflow_internal.so)

Inspecting the Glibc version in this running container with docker exec -it <container> ldd --version ldd shows ldd (GNU libc) 2.17

Per the resource, AWS Lambda > Developer Guide > Working with Python > Deploy container images , the image is using the Amazon Linux 2 operating system which is supposed to come with Glibc 2.26.

carlzogh commented 3 years ago

Thanks @patrickodpt for reporting this! The Lambda python3.7 runtime & base image use the Amazon Linux 2018.03 base OS and the documentation was inaccurately suggesting Amazon Linux 2 instead.

This has since been updated to list the base OS for Python 3.7 as Amazon Linux 2018.03 (link here)

Apologies for the inconvenience this has caused and thanks again for highlighting the issue :)