I'm trying to make a python-based AWS Lambda function and need to import a module. I followed the instructions in Creating a Deployment Package (Python) on Amazon.
When I create and upload the ZIP file, the ZIP includes:
In the usaddress folder, I put the usaddress dependencies, although I'm only guessing that's where they belong.
In any case, when I upload the file to Lambda, returns an error:
{
"errorMessage": "Unable to import module 'Tester2'"
}
START RequestId: e9c2cafe-3705-11e6-a289-5366a5578765 Version: $LATEST
Unable to import module 'Tester2': No module named future.builtins
END RequestId: e9c2cafe-3705-11e6-a289-5366a5578765
The usaddress/pycrfsuite/_pycrfsuite.pyd file is being imported by the usaddress/pycrfsuite __init_
file. The _pycrfsuite is in the right directory, but I don't know why it is being ignored.
How do I get this to work?