Running into library issues importing snowflake python connector into lambda
Hello,
I am trying to build, snowflake-connector-python, as a lambda layer to execute SQL on Snowflake. I am using the dependencies listed here to build the zip file with dependencies on Amazon linux EC2 instance - https://github.com/snowflakedb/snowflake-connector-python/blob/main/tested_requirements/requirements_39.reqs
Python runtime version - 3.9 snowflake-connector-python - 3.0.4
I followed the recommended process to build the zip file with connector and dependencies and uploaded them as a lambda layer. However, when I run a simple app to test the import -
import snowflake.connector
this is the error message -
Response { "errorMessage": "Unable to import module 'lambda_function': /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/python/cryptography/hazmat/bindings/_rust.abi3.so)", "errorType": "Runtime.ImportModuleError", "requestId": "5245b8b3-bd72-4e8c-9ead-518418617d93", "stackTrace": [] }
cryptography version I imported is the exact version listed in the git repo. Has anyone faced similar issues importing snowflake connector.
Thank you.
- Topics
- ServerlessCompute
- Language
- English
asked 3 years ago1.9K views
- Newest
- Most votes
- Most comments
I think you need to lower the version as shown in the stack overflow here.
https://stackoverflow.com/questions/75472308/aws-lambda-returns-lib64-libc-so-6-version-glibc-2-28-not-found
Relevant content
- Accepted Answer
asked 5 months ago
asked 3 years ago
