You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy terracotta to AWS lambda following all the relevant instructions with the vritualenv etc (A serverless Terracotta deployment on AWS Lambda) using RDS as well and the below error comes up on "zappa deploy"
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "rasterio/crs.pyx", line 775, in rasterio.crs.CRS.from_user_input
File "rasterio/_err.pyx", line 209, in rasterio._err.exc_wrap_ogrerr
rasterio._err.CPLE_BaseError: OGR Error code 6
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scio/anaconda3/lib/python3.9/concurrent/futures/process.py", line 243, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/home/scio/anaconda3/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/home/scio/devops/repos/terracotta/terracotta/raster.py", line 316, in get_raster_tile
dst_bounds = warp.transform_bounds(src.crs, target_crs, *src.bounds)
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/rasterio/warp.py", line 148, in transform_bounds
dst_crs = CRS.from_user_input(dst_crs)
File "rasterio/crs.pyx", line 777, in rasterio.crs.CRS.from_user_input
rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 6
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 3044, in handle
sys.exit(cli.handle())
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 519, in handle
self.dispatch_command(self.command, stage)
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 557, in dispatch_command
self.callback("settings")
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 2171, in callback
cb_func(self) # Call the function passing self
File "/home/scio/devops/repos/terracotta/zappa_settings_callback.py", line 45, in check_integrity
driver.get_raster_tile(some_dataset)
File "/home/scio/devops/repos/terracotta/terracotta/drivers/terracotta_driver.py", line 263, in get_raster_tile
return self.raster_store.get_raster_tile(
File "/home/scio/devops/repos/terracotta/terracotta/drivers/geotiff_raster_store.py", line 162, in get_raster_tile
result = future.result()
File "/home/scio/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 445, in result
return self.__get_result()
File "/home/scio/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
raise self._exception
rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 6
The text was updated successfully, but these errors were encountered:
angelosnm
changed the title
rasterio error whey deploying to AWS lambda with zappa
rasterio error when deploying to AWS lambda with zappa
Jan 14, 2023
Okay. So your installation is broken, but I'm not exactly sure how it's broken. I suggest you re-install everything, and if that doesn't work, open an issue at rasterio.
I'm trying to deploy terracotta to AWS lambda following all the relevant instructions with the vritualenv etc (A serverless Terracotta deployment on AWS Lambda) using RDS as well and the below error comes up on "zappa deploy"
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "rasterio/crs.pyx", line 775, in rasterio.crs.CRS.from_user_input
File "rasterio/_err.pyx", line 209, in rasterio._err.exc_wrap_ogrerr
rasterio._err.CPLE_BaseError: OGR Error code 6
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/scio/anaconda3/lib/python3.9/concurrent/futures/process.py", line 243, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/home/scio/anaconda3/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/home/scio/devops/repos/terracotta/terracotta/raster.py", line 316, in get_raster_tile
dst_bounds = warp.transform_bounds(src.crs, target_crs, *src.bounds)
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/rasterio/warp.py", line 148, in transform_bounds
dst_crs = CRS.from_user_input(dst_crs)
File "rasterio/crs.pyx", line 777, in rasterio.crs.CRS.from_user_input
rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 6
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 3044, in handle
sys.exit(cli.handle())
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 519, in handle
self.dispatch_command(self.command, stage)
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 557, in dispatch_command
self.callback("settings")
File "/home/scio/envs/tc-lambda/lib/python3.9/site-packages/zappa/cli.py", line 2171, in callback
cb_func(self) # Call the function passing self
File "/home/scio/devops/repos/terracotta/zappa_settings_callback.py", line 45, in check_integrity
driver.get_raster_tile(some_dataset)
File "/home/scio/devops/repos/terracotta/terracotta/drivers/terracotta_driver.py", line 263, in get_raster_tile
return self.raster_store.get_raster_tile(
File "/home/scio/devops/repos/terracotta/terracotta/drivers/geotiff_raster_store.py", line 162, in get_raster_tile
result = future.result()
File "/home/scio/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 445, in result
return self.__get_result()
File "/home/scio/anaconda3/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
raise self._exception
rasterio.errors.CRSError: The WKT could not be parsed. OGR Error code 6
The text was updated successfully, but these errors were encountered: