I am using pysftp to connect to a sFTP site from a python function. This is working fine from my local that is running as file_track.py
. But when I deploy that on AWS lambda it is failing with –
{"error Message": "Unable to import module 'lambda function': cannot import name 'asn1' from 'cryptography.hazmat.bindings._rust' (unknown location)","error Type": "Runtime.ImportModuleError","requestId": "0235edb8-25a3-4570-a1ea-2a2696a7dd04","stack Trace": []}
Please help me out!