Skip to content

Instantly share code, notes, and snippets.

@bluesammer
bluesammer / gist:adec4e0f284106fc30c6dffeeb549d14
Created October 27, 2017 02:44
mnist.py is not working. Tensor 1.3.0 / Python 3.6
Traceback (most recent call last):  File "C:\ProgramData\Anaconda3\lib\http\client.py", line 885, in _get_hostport    port = int(host[i+1:])ValueError: invalid literal for int() with base 10: '8080;DIRECT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): 
File "C:\Users\john\AppData\Local\atom\app-1.21.1\python\mnist2.py", line 23, in <module>    mnist = tf.contrib.learn.datasets.mnist.read_data_sets(train_dir=os.path.join(LOGDIR,  'data'), one_hot=True) 
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py", line 235, in read_data_sets    SOURCE_URL + TRAIN_IMAGES)