paramiko-lambda-layer icon indicating copy to clipboard operation
paramiko-lambda-layer copied to clipboard

Amplify cffi error

Open liubo-ddk opened this issue 4 years ago • 8 comments

Can you deploy ap-northeast-1.

liubo-ddk avatar Dec 11 '20 06:12 liubo-ddk

Sure, which python?

revmischa avatar Dec 11 '20 08:12 revmischa

@revmischa python3.8

liubo-ddk avatar Dec 12 '20 05:12 liubo-ddk

Try arn:aws:lambda:ap-northeast-1:898466741470:layer:paramiko-py38:1 cheers!

revmischa avatar Dec 12 '20 10:12 revmischa

@revmischa Thanks for deploy bug I Got the flow error:

{
  "errorMessage": "Unable to import module 'index': No module named '_cffi_backend'",
  "errorType": "Runtime.ImportModuleError"
}

seems build image on windows

liubo-ddk avatar Dec 12 '20 11:12 liubo-ddk

The build script is in the repo if you wanna check it out, it uses docker and linux. Are you using Serverless framework? Are you deploying your own cffi or using the one in the layer? In the README it notes you need to make sure you use the cffi from the layer

revmischa avatar Dec 12 '20 11:12 revmischa

@revmischa I'm using amplify function which deploy by build-in amplify-cli tools

liubo-ddk avatar Dec 12 '20 11:12 liubo-ddk

I see, if amplify has an option to build modules with docker that might be a better bet. I don't know the solution, sorry

revmischa avatar Dec 12 '20 12:12 revmischa

getting the same error with an FTP transfer function as well. Is it due to skipped shared objects somehow?

octetful avatar Feb 02 '22 11:02 octetful