Problem with deploying AWS Lambda function from mac

37 views
Skip to first unread message

Dan McComas

unread,
May 16, 2018, 7:49:05 PM5/16/18
to PyCryptodome
Hey!

I'm deploying a pretty simple lambda function from mac to aws.  As part of this, I'm adding the Cryptodome package to my zip file.  When I run the lambda function, I get an OS error. "Cannot load native module 'Cryptodome.Hash._BLAKE2s': OSError"

I logged out the files that it is looking for and they are:
_BLAKE2s.cpython-36m-x86_64-linux-gnu.so
_BLAKE2s.abi3.so
_BLAKE2s.so
The problem is that in my Cryptodome/Hash directory that I'm deploying, the only BLAKE2s looking files are:
_BLAKE2b.cpython-36m-darwin.so
_BLAKE2s.cpython-36m-darwin.so
BLAKE2b.py

BLAKE2s.py


I understand this is probably a build problem, and I don't have any way to build this package in the lambda deploy process. Can you think of a way of getting these files or building this differently? Sorry if these questions are dumb, the ops world is definitely not my world.


Dan

Reply all
Reply to author
Forward
0 new messages