Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError: Not a gzipped file #21

Open
rajoy99 opened this issue May 31, 2021 · 0 comments
Open

IOError: Not a gzipped file #21

rajoy99 opened this issue May 31, 2021 · 0 comments

Comments

@rajoy99
Copy link

rajoy99 commented May 31, 2021

I'm trying to run the code on Colab and receiving this error message:

`Extracting ./asset/data/mnist/train-images-idx3-ubyte.gz
Traceback (most recent call last):
File "train.py", line 23, in
data = tf.sg_data.Mnist(batch_size=batch_size)
File "/usr/local/lib/python2.7/dist-packages/sugartensor/sg_data.py", line 29, in init
data_set = input_data.read_data_sets(Mnist._data_dir, reshape=reshape, one_hot=one_hot)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 213, in read_data_sets
train_images = extract_images(f)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 53, in extract_images
magic = _read32(bytestream)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 35, in _read32
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]
File "/usr/lib/python2.7/gzip.py", line 267, in read
self._read(readsize)
File "/usr/lib/python2.7/gzip.py", line 302, in _read
self._read_gzip_header()
File "/usr/lib/python2.7/gzip.py", line 196, in _read_gzip_header
raise IOError, 'Not a gzipped file'

IOError: Not a gzipped file`

I think this error is due to Tensorflow version incompatibility. I am using Sugartensor version ==0.0.1.7 and tensorflow version == 0.12.0rc0. Note that the recommended tensorflow version is rc0.11 which is not available via pip . How can I get tensorflow==rc0.11 version ? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant