lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

Add pykrige.

Open uprego opened this issue 8 years ago • 4 comments

I need pykrige.

I'm going to try to apply https://streetdatasciencedotcom.wordpress.com/2016/11/24/using-numpy-and-pandas-on-aws-lambda/ (useful while https://github.com/Miserlou/lambda-packages/issues/71 gets resolved) to pykrige.

uprego avatar Dec 18 '17 11:12 uprego

Depends not only on numpy and scipy but even on matplotlib.

This is not OK, the Street Data Science recipe doesn't work for scipy because you would need to install lapack to compile it, and you could do that but finally the AWS Lambda runtime environment would tell this at execution time, and I assume there is no solution for:

Unable to import module 'lambda_function': liblapack.so.3: cannot open shared
object file: No such file or directory

Anyways I'm a long time user of your psycopg2 distribution so big thank you :heart:.

uprego avatar Dec 18 '17 13:12 uprego

Well it seems there might be an implicit LD_LIBRARY_PATH or something: (https://stackoverflow.com/questions/34749806/).

uprego avatar Dec 18 '17 15:12 uprego

Yeah that did the trick and the program now at least boots, like if there is a permanent LD_LIBRARY_PATH to $AWS_LAMBDA_PKG_ROOT/lib/.

:grin:

uprego avatar Dec 18 '17 15:12 uprego

All the way into production. So perfect.

uprego avatar Dec 18 '17 16:12 uprego