Date
1 - 5 of 5
need help installing rasterio with WebP
tgertin@...
I am using Ubuntu with Anaconda.
I would like to install rasterio with WebP. Help would be greatly appreciated on how to do this, especially some example commands. Thanks, Tom |
|
Sean Gillies
Hi Tom, I'm not an Anaconda user and don't know how to build packages for it. I think you'll want to find a conda channel that has rasterio packages with WebP support built in. I think that's most likely to be the conda-forge channel. If it doesn't have WebP support, I suggest requesting it at https://github.com/conda-forge/gdal-feedstock. On Thu, Dec 5, 2019 at 6:59 AM <tgertin@...> wrote: I am using Ubuntu with Anaconda. --
Sean Gillies |
|
Howard Butler
Bitner recently added WebP to linux GDAL Conda Forge builds https://github.com/conda-forge/gdal-feedstock/pull/346 I have no idea when that will make it into Anaconda's channel though. Howard |
|
tgertin@...
Thank you for looking into this. I am running these commands using the conda-forge channel:
``` conda create --name rasterio_w_webp_test1 python=3.7 conda config --add channels conda-forge
conda install gdal libgdal
conda install rasterio
pip install rio-cogeo
```
Then I am using the rio cogeo command that uses WebP: ``` rio cogeo create -p webp input.tif output.tif ``` but I get the following error: ``` File "rasterio/shutil.pyx", line 139, in rasterio.shutil.copy
File "rasterio/_err.pyx", line 205, in rasterio._err.exc_wrap_pointer
rasterio._err.CPLE_AppDefinedError: Cannot create TIFF file due to missing codec for WEBP.
```
so I think something didn't install correctly. I don't need to use conda, but it seems like a good option because it uses virtual environments. |
|
Howard Butler
The reason this doesn't work is Conda/Conda Forge uses an external libtiff build which does not have WebP support enabled. The "WEBP" GDAL driver by itself should work because that is linked differently (but that isn't a TIFF/WebP either). I have initiated an update to Conda Forge's libtiff to add WebP support, but this is likely to take a while for this build to filter back through. See https://github.com/conda-forge/libtiff-feedstock/pull/48 for more details. Howard On Thu, Dec 5, 2019 at 1:45 PM <tgertin@...> wrote:
|
|