I tried reverting to languages that used the old Amazon Linux image but run into issues there as well.
When this didn't work I tried deploying the java function in this repo but get what I assume is the same error:
2020-09-07T13:44:08.076+02:00 | File "site.py", line 77, in main
-- | --
ย | 2020-09-07T13:44:08.076+02:00 | File "site-packages/calibre/ebooks/conversion/cli.py", line 401, in main
ย | 2020-09-07T13:44:08.076+02:00 | File "site-packages/calibre/ebooks/conversion/plumber.py", line 1275, in run
ย | 2020-09-07T13:44:08.076+02:00 | File "site-packages/calibre/ebooks/conversion/plugins/mobi_output.py", line 186, in convert
ย | 2020-09-07T13:44:08.076+02:00 | File "site-packages/calibre/ebooks/mobi/writer2/resources.py", line 12, in <module>
ย | 2020-09-07T13:44:08.076+02:00 | File "site-packages/calibre/ebooks/mobi/utils.py", line 13, in <module>
ย | 2020-09-07T13:44:08.076+02:00 | File "site-packages/calibre/utils/img.py", line 17, in <module>
ย | 2020-09-07T13:44:08.076+02:00 | ImportError: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/lib/libpng16.so.16)
Have you ran into the same issue? I tried to force load the libz.so.1 version from the calibre layer using the LD_LIBRARY_PATH but coudn't get it working..