Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rasterio 1.4.2 does not work with AWS Lambda 3.12 #3

Open
vincentsarago opened this issue Nov 9, 2024 · 2 comments
Open

Rasterio 1.4.2 does not work with AWS Lambda 3.12 #3

vincentsarago opened this issue Nov 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@vincentsarago
Copy link
Member

#22 ERROR: process "/bin/sh -c python -c \"from handler import handler; print('All Good')\"" did not complete successfully: exit code: 1
------
 > [lambda 4/4] RUN python -c "from handler import handler; print('All Good')":
1.003 Traceback (most recent call last):
1.003   File "<string>", line 1, in <module>
1.003   File "/var/task/handler.py", line 5, in <module>
1.004     from app.main import app
1.004   File "/assets/lib/python3.12/site-packages/app/main.py", line 13, in <module>
1.005   File "/assets/lib/python3.12/site-packages/titiler/core/__init__.py", line 5, in <module>
1.005   File "/assets/lib/python3.12/site-packages/titiler/core/dependencies.py", line 10, in <module>
1.005   File "/assets/lib/python3.12/site-packages/rasterio/__init__.py", line 25, in <module>
1.005 ImportError: libexpat.so.1: cannot open shared object file: No such file or directory
------

I need to report this to https://github.com/rasterio/rasterio-wheels

@vincentsarago
Copy link
Member Author

for now I'll stick to ~1.3.9

RUN pip install /tmp/runtimes "mangum>=0.10.0" "aiobotocore==2.13.3" "rasterio==1.3.9" "numpy~=1.0" -t /asset --no-binary pydantic,xarray,numpy,pandas

@vincentsarago
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant