title: AttributeError: 'NoneType' object has no attribute 'ReadAsArray' when loading an image, what could be the cause?
body: <p>I'm trying to build a convolutional neural network for image classification in Python.
  I run my code on CoLab and have loaded my data on Google Drive.</p>
  
  <p>I can see all the files and folders in my google drive from python, but when I try to actually load an image it gives me the error in the title.</p>
  
  <p>I'm using the <code>skimage.io</code> package, I'm actually just running a notebook I found on kaggle so the code should run fine, only difference I noticed is that the kaggle user was probably not working on CoLab with his data in GoogleDrive so I think maybe that's the problem, anyway here's my code:</p>
  
  <p><code>from skimage.io import imread</code></p>
  
  <pre><code>img=imread('/content/drive/My Drive/CoLab/Data/chest_xray/train/PNEUMONIA/person53_bacteria_255.jpeg')
  </code></pre>
  
  <p>Which gives me the following error:</p>
  
  <p>AttributeError: 'NoneType' object has no attribute 'ReadAsArray'</p>
  
  <pre><code>---------------------------------------------------------------------------
  
  AttributeError                            Traceback (most recent call last)
  
  &lt;ipython-input-12-4a64aebb8504&gt; in &lt;module&gt;()
  ----&gt; 1 img=imread('/content/drive/My Drive/CoLab/Data/chest_xray/train/PNEUMONIA/person53_bacteria_255.jpeg')
  
  4 frames
  
  /usr/local/lib/python3.6/dist-packages/skimage/io/_io.py in imread(fname, as_gray, plugin, flatten, **plugin_args)
       59 
       60     with file_or_url_context(fname) as fname:
  ---&gt; 61         img = call_plugin('imread', fname, plugin=plugin, **plugin_args)
       62 
       63     if not hasattr(img, 'ndim'):
  
  /usr/local/lib/python3.6/dist-packages/skimage/io/manage_plugins.py in call_plugin(kind, *args, **kwargs)
      208                                (plugin, kind))
      209 
  --&gt; 210     return func(*args, **kwargs)
      211 
      212 
  
  /usr/local/lib/python3.6/dist-packages/imageio/core/functions.py in imread(uri, format, **kwargs)
      221     reader = read(uri, format, "i", **kwargs)
      222     with reader:
  --&gt; 223         return reader.get_data(0)
      224 
      225 
  
  /usr/local/lib/python3.6/dist-packages/imageio/core/format.py in get_data(self, index, **kwargs)
      345             self._checkClosed()
      346             self._BaseReaderWriter_last_index = index
  --&gt; 347             im, meta = self._get_data(index, **kwargs)
      348             return Array(im, meta)  # Array tests im and meta
      349 
  
  /usr/local/lib/python3.6/dist-packages/imageio/plugins/gdal.py in _get_data(self, index)
       64             if index != 0:
       65                 raise IndexError("Gdal file contains only one dataset")
  ---&gt; 66             return self._ds.ReadAsArray(), self._get_meta_data(index)
       67 
       68         def _get_meta_data(self, index):
  
  AttributeError: 'NoneType' object has no attribute 'ReadAsArray'
  </code></pre>