<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Sharing what I sent to Ari directly (forgot to anser to all) <div><br></div><div><span style="font-family: -webkit-standard; font-size: medium;">Hi Ari,</span><div><br></div><div>You can have a look at <a href="https://github.com/lambgeo/docker-lambda">https://github.com/lambgeo/docker-lambda</a> </div><div>It doesn’t provide any python bindings but if you follow <a href="https://github.com/lambgeo/docker-lambda#2-advanced-need-other-dependencies">https://github.com/lambgeo/docker-lambda#2-advanced-need-other-dependencies</a> you can create a lambda package with all the deps you need.</div><div><br></div><div>Vincent <br></div><br class="Apple-interchange-newline"><div><br><blockquote type="cite"><div>On Feb 8, 2023, at 3:35 PM, Joe Lee <hyoklee@hdfgroup.org> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">This worked quite well in 2019 with a few hacks:<o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="https://github.com/developmentseed/geolambda" style="color: blue; text-decoration: underline;">https://github.com/developmentseed/geolambda</a><o:p></o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in;"><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span style="font-size: 12pt;">From:<span class="Apple-converted-space"> </span></span></b><span style="font-size: 12pt;">gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" style="color: blue; text-decoration: underline;">gdal-dev-bounces@lists.osgeo.org</a>> on behalf of Ari Jolma <<a href="mailto:ari.jolma@gmail.com" style="color: blue; text-decoration: underline;">ari.jolma@gmail.com</a>><br><b>Date:<span class="Apple-converted-space"> </span></b>Wednesday, February 8, 2023 at 1:42 AM<br><b>To:<span class="Apple-converted-space"> </span></b><a href="mailto:gdal-dev@lists.osgeo.org" style="color: blue; text-decoration: underline;">gdal-dev@lists.osgeo.org</a><span class="Apple-converted-space"> </span><<a href="mailto:gdal-dev@lists.osgeo.org" style="color: blue; text-decoration: underline;">gdal-dev@lists.osgeo.org</a>><br><b>Subject:<span class="Apple-converted-space"> </span></b>[gdal-dev] AWS Lambda layer with GDAL python bindings<o:p></o:p></span></p></div><div><div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Hi,<br><br>I need an AWS Lambda layer with GDAL python bindings, for "from osgeo<span class="Apple-converted-space"> </span><br>import gdal", but it seems difficult to make such a layer.<br><br>In fact all I need is gdal.Open and gdal.BuildVRT - I have not dug<span class="Apple-converted-space"> </span><br>deeper into rasterio, can it do those?<br><br>Anyway, I installed GDAL on a machine with python 3.8 as that's what to<span class="Apple-converted-space"> </span><br>lambda runtime will be, and from there copied files to a zip with /lib<span class="Apple-converted-space"> </span><br>and /python. The /lib is for the shared objects. I have now 94 libraries<span class="Apple-converted-space"> </span><br>there. The error I now get from<br><br>try<br><br>     from osgeo import gdal<br><br>except<br><br>in the lambda is<br><br>ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required<span class="Apple-converted-space"> </span><br>by /opt/lib/libgdal.so.29)<br><br>this seems to be a problem as that's the lambda's libm and not the libm<span class="Apple-converted-space"> </span><br>in /lib, which I assume should work.<br><br>Anybody know a solution? I tried some recipes I found from the net howto<span class="Apple-converted-space"> </span><br>build such a layer but they did not work for me out of the box, so I<span class="Apple-converted-space"> </span><br>tried myself.<br><br>Best,<br><br>Ari<br><br><br>_______________________________________________<br>gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org" style="color: blue; text-decoration: underline;">gdal-dev@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" style="color: blue; text-decoration: underline;">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">gdal-dev mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="mailto:gdal-dev@lists.osgeo.org" style="color: blue; text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">gdal-dev@lists.osgeo.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" style="color: blue; text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></div></blockquote></div><br></div></body></html>