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.

feita há 10 meses766 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas