-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1022303: Cannot import snowflake.connector on amazonlinux due to dependency conflict with cryptography #1865
Comments
thanks for the report! we will bump the version and release a newer version after verifying the dependencies. |
Thanks. Any timeline on that? |
@sfc-gh-aling My customer would like to know when the PR #1866 will be reviewed and merged. |
we will do a release in the coming two weeks. |
@sfc-gh-aling Is it ok to send customer this link to the night build that you mentioned above? |
@sfc-gh-aling I tried creating an AWS Lamdba layer using nightly build but the same problem happens. Any sugestions for what I could try next? Here is what I did: Note: I could not install the nightly build with targeted options. I tried
When the Layer is installed on AWS Lamdba and
I tried to install a previous version but there are no previous versions with targeted binaries until 1.9.0 which I am unable to install. I tried going back to |
@metalaureate
can this be related to how you prepare you docker image/python, have you tried installing Python 3.12 from binary installer or conda and see how it goes? @sfc-gh-ssampat yes you can share the link with our customer |
This is fixed by making sure the Apple Silicon version of amazonlinux is emulating amd64. Build Python 3.12 on Amazon Linux, emulated as x86docker run --platform linux/amd64 -it --rm amazonlinux yum update -y wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz make altinstall Prepare Envrm -rf /tmp/python python3.12 -m venv venv pip3 install snowflake package for layercd venv/lib/python3.12/site-packages |
Python version
Python 3.12.0 (main, Jan 29 2024, 22:33:41) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)]
Operating system and processor architecture
Linux-6.4.16-linuxkit-aarch64-with-glibc2.34
Installed packages
What did you do?
I am trying to use snowflake.connect in the AWS Lamdba environment but both on my local docker version of the amazonlinux env and remotely in AWS Lambda Layer attempting to import snowflake.connector produces:
This reproduces it:
create the amazonlinux environment
docker run -it --rm amazonlinux
yum update -y
yum groupinstall "Development Tools" -y
yum install wget openssl-devel bzip2-devel libffi-devel -y
compile Python 3.12 fml
wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz
tar -xf Python-3.12.0.tar.xz
cd Python-3.12.0
./configure --enable-optimizations
make altinstall
create virtual environment
python3.12 -m venv venv
source venv/bin/activate
install as per https://repost.aws/knowledge-center/lambda-import-module-error-python
(I tried all which ways but still got same error)
What did you expect to see?
I expected
import snowflake.connector
not to throw low-level binding dependency errors.Can you set logging to DEBUG and collect the logs?
NA
The text was updated successfully, but these errors were encountered: