Issues with Numpy when using rio-tiler in AWS Lambda #739
Unanswered
abdul-imran
asked this question in
Q&A
Replies: 2 comments 1 reply
-
this is not a rio-tiler issue, the error message seems to indicate you have an issue with Numpy or something that happened during packaging your lambda function |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @vincentsarago - Thank you. I found the solution for this.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Created a lambda layer using Python 3.12
pip install rio-tiler pillow -t lambda_layer/python
Created a lambda function which reads a Cloud Optimized GeoTiff (COG) from AWS S3 & returns tiles based on the values for x,y, & z. The below statements give me an issue
`
from rio_tiler.io import COGReader
from rio_tiler.models import Tile
from rio_tiler.utils import render
`
Unable to import module 'lambda_function': Error importing numpy: you should not try to import numpy from\n its source directory; please exit the numpy source tree, and relaunch\n your python interpreter from there.
Beta Was this translation helpful? Give feedback.
All reactions