title: tensorflow beginner tutorial - read_data_sets fails
body: <p>I'm trying to run the <a href="https://www.tensorflow.org/tutorials/mnist/beginners/index.html" rel="nofollow">tutorial</a> on Linux. I installed <code>gcc</code>, <code>cython</code>, <code>numpy</code>, <code>six</code>. </p>
  
  <p>I can import the data but there seems to be some kind of problem unpacking it. </p>
  
  <p>Can anyone help? </p>
  
  <hr>
  
  <pre><code>Python 2.7.3 (default, Jun 22 2015, 19:43:34)
  [GCC 4.6.3] on linux2
  Type "help", "copyright", "credits" or "license" for more information.   
  &gt;&gt;&gt; import g3doc.tutorials.mnist.input_data as input_data
  &gt;&gt;&gt; mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
  Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes.
  Extracting MNIST_data/train-images-idx3-ubyte.gz
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "g3doc/tutorials/mnist/input_data.py", line 175, in read_data_sets
      train_images = extract_images(local_file)
    File "g3doc/tutorials/mnist/input_data.py", line 60, in extract_images
      buf = bytestream.read(rows * cols * num_images)
    File "/usr/lib/python2.7/gzip.py", line 263, in read
      chunk = self.extrabuf[offset: offset + size]
  TypeError: only integer scalar arrays can be converted to a scalar index
  &gt;&gt;&gt; mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
  Extracting MNIST_data/train-images-idx3-ubyte.gz
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "g3doc/tutorials/mnist/input_data.py", line 175, in read_data_sets
      train_images = extract_images(local_file)
    File "g3doc/tutorials/mnist/input_data.py", line 60, in extract_images
      buf = bytestream.read(rows * cols * num_images)
    File "/usr/lib/python2.7/gzip.py", line 263, in read
      chunk = self.extrabuf\[offset: offset + size]
  TypeError: only integer scalar arrays can be converted to a scalar index
  </code></pre>
  
  <hr>