developmentseed / geolambda

Create and deploy Geospatial AWS Lambda functions
MIT License
303 stars 85 forks source link

Files missing in deployment package #89

Open saheelBreezo opened 4 years ago

saheelBreezo commented 4 years ago

I am creating a layer with gdal (3.0.1) , sklearn (0.22.2.post1) . While everything works fine and layer is created successfully, however some of the files always gets missed . One file in particular is pipeline.py inside sklearn which never shows up in sklearn folder inside layer. This is the content inside python dir in zip package

This is inside sklearn folder Screenshot from 2020-05-05 22-42-23

I tried explicitly adding the file but that created some more dependency issue which was also not present in skearn. Just need some help in this.

OS: Amazon Linux AMI release 2018.03 on AWS Python Version for Layer: 3.7

matthewhanson commented 3 years ago

@saheelBreezo Did you ever figure out what was going on here?

saheelBreezo commented 3 years ago

Hey @matthewhanson Couldn't find a solution for this, tried different version of sklearn. Finally copied the missing files and add it to the zip explicitly.

saheelBreezo commented 3 years ago

Sorry for late reply, I tried again and it again miss one specific file pipeline.py from sklearn. Later I found EXCLUDE="boto3* botocore* pip* docutils* in python-package.sh and it might excluding because it matches pip* filter.