Date
1 - 8 of 8
Rasterio 1.0.3.post1
Sean Gillies
Hi all, The 1.0.3 wheels I built for OSX and uploaded to PyPI included a GDAL library with no curl support. I've made a post-release that fixes this problem. If you installed one of these wheels, please `pip install -U pip` to get 1.0.3.post1. -- Sean Gillies
|
|
Denis Rykov
Hi Sean!
After updating rasterio I get the following error: In [1]: from rasterio import open
In [2]: open('tests/data/raster/rgb.jp2')
---------------------------------------------------------------------------
CPLE_OpenFailedError Traceback (most recent call last)
rasterio/_base.pyx in rasterio._base.DatasetBase.__init__()
rasterio/_shim.pyx in rasterio._shim.open_dataset()
rasterio/_err.pyx in rasterio._err.exc_wrap_pointer()
CPLE_OpenFailedError: 'tests/data/raster/rgb.jp2' not recognized as a supported file format.
During handling of the above exception, another exception occurred:
RasterioIOError Traceback (most recent call last)
<ipython-input-2-19e7b16f33e4> in <module>()
----> 1 open('tests/data/raster/rgb.jp2')
~/sandbox/telluric/env/lib/python3.5/site-packages/rasterio/env.py in wrapper(*args, **kwds)
401 else:
402 pass
--> 403 return f(*args, **kwds)
404
405 return wrapper
~/sandbox/telluric/env/lib/python3.5/site-packages/rasterio/__init__.py in open(fp, mode, driver, width, height, count, crs, transform, dtype, nodata, sharing, **kwargs)
215 # None.
216 if mode == 'r':
--> 217 s = DatasetReader(path, driver=driver, **kwargs)
218 elif mode == 'r+':
219 s = get_writer_for_path(path)(path, mode, driver=driver, **kwargs)
rasterio/_base.pyx in rasterio._base.DatasetBase.__init__()
RasterioIOError: 'tests/data/raster/rgb.jp2' not recognized as a supported file format. All works without any problems with rasterio 1.0.2: In [1]: from rasterio import open
In [2]: open('tests/data/raster/rgb.jp2')
Out[2]: <open DatasetReader name='tests/data/raster/rgb.jp2' mode='r'>
|
|
Sean Gillies
Thanks for the report, Denis. I had upgraded GDAL to 2.3.1 in these wheel builds, and was blaming my inability to access these jp2 files on a lack of credentials, but maybe something has changed between Rasterio and JP2 in 2.3.0? I'm going to revert to 2.2.4, the version in the 1.0.2 wheels.
On Mon, Sep 10, 2018 at 7:10 AM Denis Rykov <rykovd@...> wrote: Hi Sean! -- Sean Gillies
|
|
Even Rouault
On lundi 10 septembre 2018 14:29:39 CEST Sean Gillies wrote:
Thanks for the report, Denis. I had upgraded GDAL to 2.3.1 in these wheelSean, Your wheels use openjpeg for GDAL JPEG2000 capability, right ? There has been a change in GDAL ./configure in 2.3.0 related to openjpeg detection. It now requires pkg-config to be available to detect openjpeg. Even -- Spatialys - Geospatial professional services http://www.spatialys.com
|
|
Sean Gillies
Even, Thanks for the pointer! In configuring my GDAL 2.3.1 builds, pkg-config and openjpeg were found:
(full logs here: and I'm able to open GDAL's jp2 test files with the 1.0.3.post1 wheel (for python 3.6 and OSX). Denis, I think your issue is different than the one I've reported here. What's your operating system and did you install from the sdist or install a binary wheel? On Mon, Sep 10, 2018 at 12:17 PM Even Rouault <even.rouault@...> wrote: On lundi 10 septembre 2018 14:29:39 CEST Sean Gillies wrote: -- Sean Gillies
|
|
Denis Rykov
OS: Ubuntu 16.04.5
Wheel: rasterio-1.0.3.post1-cp35-cp35m-manylinux1_x86_64.whl Full example: $ pip install -U rasterio Collecting rasterio Using cached https://files.pythonhosted.org/packages/48/9c/ed4e2b5b3150ee39052bf580de0e67c8c2e5b58eb89833a174c8e8694d5f/rasterio-1.0.3.post1-cp35-cp35m-manylinux1_x86_64.whl Requirement already satisfied, skipping upgrade: attrs in ./env/lib/python3.5/site-packages (from rasterio) (17.4.0) Requirement already satisfied, skipping upgrade: click-plugins in ./env/lib/python3.5/site-packages (from rasterio) (1.0.3) Requirement already satisfied, skipping upgrade: snuggs>=1.4.1 in ./env/lib/python3.5/site-packages (from rasterio) (1.4.1) Requirement already satisfied, skipping upgrade: cligj in ./env/lib/python3.5/site-packages (from rasterio) (0.4.0) Requirement already satisfied, skipping upgrade: affine in ./env/lib/python3.5/site-packages (from rasterio) (2.2.0) Requirement already satisfied, skipping upgrade: numpy in ./env/lib/python3.5/site-packages (from rasterio) (1.14.2) Requirement already satisfied, skipping upgrade: click>=3.0 in ./env/lib/python3.5/site-packages (from click-plugins->rasterio) (6.7) Requirement already satisfied, skipping upgrade: pyparsing in ./env/lib/python3.5/site-packages (from snuggs>=1.4.1->rasterio) (2.2.0) Installing collected packages: rasterio Found existing installation: rasterio 1.0.2 Uninstalling rasterio-1.0.2: Successfully uninstalled rasterio-1.0.2 Successfully installed rasterio-1.0.3.post1
|
|
Sean Gillies
Hi Denis, I discovered that I had to patch GDAL 2.3.1 to build with OpenJPEG for the ancient manylinux1 platform. I've uploaded new wheels with a "-1" build tag to https://pypi.org/manage/project/rasterio/release/1.0.3.post1/. I didn't know about build tags – I won't make post-releases to fix wheel build problems anymore.
On Mon, Sep 10, 2018 at 1:10 AM Denis Rykov <rykovd@...> wrote: Hi Sean! -- Sean Gillies
|
|
Denis Rykov
Thank you very much, Sean!
|
|