AWS Lambda: python-oracledb thin mode cannot be used because the cryptography package is not installed #68
Closed
edgar-slalom
started this conversation in
General
Replies: 4 comments 5 replies
-
Can any Lambda users help @github4es here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I presume you are getting this error?
This occurs if the following imports fail: from cryptography import x509
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.ciphers import algorithms, modes, Cipher
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.kdf import pbkdf2 You could try putting these imports directly in your main script so you can see which one it is complaining about. That may shed some light on the matter? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Is this issue resolved? If so could someone help on resolving this. I'm also facing same issue. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Creating a new thread on this particular issue because the error and issue are deceiving.
The installation instructions say:
python -m pip install oracledb
This I've done and I packaged this into a lambda layer. I am able to
And this is where I get the error. Below you can see the cryptography folder/package is installed just like oracledb one.
Why do I get the error? what must I do to "install" and "configure" the cryptography package? Is there something that needs to be added to the instructions ?
Beta Was this translation helpful? Give feedback.
All reactions