Running into library issues importing snowflake python connector into lambda

0

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.

posta 10 mesi fa766 visualizzazioni
1 Risposta
0

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

profile picture
ESPERTO
con risposta 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande