[Live-demo] [OSGeo] #1752: Jupyter Notebook rasterio does not find the sample data

OSGeo trac_osgeo at osgeo.org
Mon Jul 11 23:13:03 PDT 2016


#1752: Jupyter Notebook rasterio does not find the sample data
-----------------------+-------------------------------
 Reporter:  darkblueb  |      Owner:  live-demo@…
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  OSGeoLive10.0
Component:  LiveDVD    |   Keywords:  jupyter, rasterio
-----------------------+-------------------------------
 run Jupyter;

     http://localhost:8883/notebooks/projects/RASTERIO/introduction.ipynb

 {{{
 In [2]: src = rasterio.open('data/RGB.byte.tif')


 ERROR:GDAL:CPLE_OpenFailed in No such file or directory

 ---------------------------------------------------------------------------
 IOError                                   Traceback (most recent call
 last)
 <ipython-input-2-5d692b2ffa15> in <module>()
 ----> 1 src = rasterio.open('data/RGB.byte.tif')

 /usr/lib/python2.7/dist-packages/rasterio/__init__.pyc in open(path, mode,
 driver, width, height, count, crs, transform, dtype, nodata, **kwargs)
     121         raise ValueError(
     122             "mode string must be one of 'r', 'r+', or 'w', not %s"
 % mode)
 --> 123     s.start()
     124     return s
     125

 rasterio/_base.pyx in rasterio._base.DatasetReader.start
 (rasterio/_base.c:2615)()

 rasterio/_err.pyx in rasterio._err.GDALErrCtxManager.__exit__
 (rasterio/_err.c:994)()

 IOError: No such file or directory


 }}}

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1752>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Osgeolive mailing list