I want to use the smbprotocol python library in my Lambda function.
I tried adding it as a deployment package:
mypackage.zip | |--> packages | | | |-->pip | |-->smbprotocol | |-->.. |--> myscript.py Gave me the below error:
[ERROR] Runtime.ImportModuleError: Unable to import module 'generate_sequenceFile_submit_request': cannot import name 'x509' from 'cryptography.hazmat.bindings._rust'
I tried creating a Layer and using it through layer. Same error.
The requirments.txt I'm using to create my packages folder or my Layer contains:
- smbprotocol
- Python version I'm using is 3.9
My Layer is created using a zip file which has a path \python\lib\python3.9\site-packages\
(I created the layer by running the below command: pip install . -t \python\lib\python3.9\site-packages)
Wierdly when I run this locally, it works fine inside my virtual environment.
Im developing in Windows.