import input_data MNIST tensorflow gives NoneType object (Attribute error)
<p>I am not able to import the mnist dataset properly. Can you please help me figuring out whats going wrong. "input_data.py" is correctly placed and called.</p>

<pre><code>&gt;&gt;&gt; mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)

Extracting MNIST_data/train-images-idx3-ubyte.gz
Extracting MNIST_data/train-labels-idx1-ubyte.gz
Extracting MNIST_data/t10k-images-idx3-ubyte.gz
Extracting MNIST_data/t10k-labels-idx1-ubyte.gz

&gt;&gt;&gt; trX, trY, teX, teY = mnist.train.images, mnist.train.labels, mnist.test.images, mnist.test.labels
Traceback (most recent call last):
File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'NoneType' object has no attribute 'train'

&gt;&gt;&gt; print(mnist)
None
</code></pre>