capless / warrant

Python library for using AWS Cognito. With support for SRP.
Apache License 2.0
468 stars 192 forks source link

Cannot load native module from aws lambda #92

Open vishaldesai opened 6 years ago

vishaldesai commented 6 years ago

I get following error when I try to run code from aws lambda

python 2.7 START RequestId: 43380dba-1594-11e8-80c7-879198b1da07 Version: $LATEST module initialization error: Cannot load native module 'Crypto.Hash._SHA256'

python 3.6 START RequestId: 2731b787-1595-11e8-b297-032e844e4bd7 Version: $LATEST Unable to import module 'lambda_function': No module named 'Queue'

kyeljmd commented 6 years ago

I am on 3.6 and I am encountering the same error as 2.7. Adding myself in the loop

edwinevans commented 6 years ago

It seems Lambda does not support Queue (see https://aws.amazon.com/blogs/compute/parallel-processing-in-python-with-aws-lambda/). @vishaldesai @kyeljmd did you figure out any solution?

kevinsalerno commented 5 years ago

Python 3.6 AWS Lambda + Warrant Unable to import module 'function': No module named 'Queue'

ffiore1 commented 5 years ago

@here had the same issue with the Crypto.Hash._SHA256 module in the lambda function, using Python 3.7.

fixed that adding the library pycrypto, https://pypi.org/project/pycrypto/