0

I've a python script which uses pynacl dependency and I'm not able to successfully import dependency on aws. I've tried creating layers and uploading zip file of dependencies but still I'm facing below errors.

Response
{
  "errorMessage": "Unable to import module 'lambda_function': No module named '_cffi_backend'",
  "errorType": "Runtime.ImportModuleError",
  "requestId": "a3a0b6cf-52bd-4c7a-bfb8-78ab8b19abdb",
  "stackTrace": []
}

also below ones

Response
{
  "errorMessage": "Unable to import module 'lambda_function': No module named 'nacl'",
  "errorType": "Runtime.ImportModuleError",
  "requestId": "27940a67-f806-47c1-afda-4e1d5df942b8",
  "stackTrace": []
}

These are the imports:

import requests
import nacl.encoding
import nacl.hash
from nacl.bindings import crypto_sign_ed25519_sk_to_seed
from nacl.signing import SigningKey, VerifyKey

0 Answers0