I’m trying to use AWS Lambda to transfer data from my S3 bucket to Couchbase server, and I’m writing in Python. So I need to import couchbase module in my Python script. Usually if there are external modules used in the script, I need to pip install those modules locally and zip the modules and script together, then upload to Lambda. But this doesn’t work this time. The reason is the Python client of couchbase works with the c client of couchbase: libcouchbase. So I’m not clear what I should do. When I simply add in the c client package (with that said, I have 6 package folders in my deployment package, the first 5 are the ones installed when I run “pip install couchbase”: couchbase, acouchbase, gcouchbase, txcouchbase, couchbase-2.1.0.dist-info; and the last one is the c client of Couchbase I installed: libcouchbase), lambda doesn’t work and said:
“Unable to import module ‘lambda_function’: libcouchbase.so.2: cannot open shared object file: No such file or directory”
Any idea on how I can get the this work? With a lot of thanks.