Closed kulshekhar closed 7 years ago
Update: I've tried updating anaconda & all the installed packages but I haven't been able to figure out a way to fix this.
Searching for this error, I also came across this stackoverflow question which looks similar but I wasn't able to use the answer to fix this issue
Update: Fixed
For posterity:
This issue is similar to the one posted on this stackoverflow question. The solution was similar. In this case, update the _read32
function in tflearn/dataset/mnist.py
from
def _read32(bytestream):
dt = numpy.dtype(numpy.uint32).newbyteorder('>')
return numpy.frombuffer(bytestream.read(4), dtype=dt)
to
def _read32(bytestream):
dt = numpy.dtype(numpy.uint32).newbyteorder('>')
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
I see that the latest source code of tflearn has this fixed. For some reason, installing TFLearn by following the instructions in the lesson wasn't sufficient to avoid this issue.
thanks, that's very helpful. i get the latest by pip install git+https://github.com/tflearn/tflearn.git
In the exercise on handwritten digit recognition (in the 'Intro to TFLearn' lesson), I'm getting the following error when trying to execute the code that loads the MNIST data:
I get this error when executing the code from the notebook and also while executing it in the REPL.
I spent some time on this but was unable to figure out what I could do to fix this. Any pointers would be very helpful.
Edit: System details: Linux Mint 18 (~ Ubuntu 16.04) Python 3.5 via Anaconda Haven't faced any issues in any other tasks/exercises in the course so far