I am running to this error when connecting to snowflake from aws lambda code.
Unable to import module 'lambda_function': /lib64/libc.so.6: version GLIBC_2.28 not found (required by /opt/python/lib/python3.9/sitepackages/cryptography/hazmat/bindings/_rust.abi3.so
I have tried a built snowflake connector dependecies using these steps
docker run -v /Users/Documents/docker_test:/working -it --rm ubuntu
- install python 3.9.6 version using How to install python3.9 on linux ubuntu terminal?
3. apt-get update
$ apt-get install python3-pip ( this seems to install python 3.10 as well)
$ apt-get install zip
$ apt-get install python3-venv
$ cd lambda
$ mkdir my-lambda-function
$ cd my-lambda-function
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install snowflake-connector-python
$ cd venv/lib/python3.9/site-packages
$ zip -r9 ${OLDPWD}/function.zip .
Since 3.10 and 3.9 python were install, i alias python and python3 to python3.9
How i resolve /lib64/libc.so.6: version GLIBC_2.28
?