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

AttributeError: 'module' object has no attribute 'Copy' on fully_connected.py. Built from source on 15th February. #1102

Closed
jkschin opened this issue Feb 15, 2016 · 3 comments
Assignees
Labels

Comments

@jkschin
Copy link

jkschin commented Feb 15, 2016

I built from source on 15th February. I can run cifar10_train.py, with the warning during training as stated here.

#1076

I can run the convolutional mnist with no problems. However, when I try fully_connected.py, this error shows up.

Traceback (most recent call last):
File "fully_connected_feed.py", line 228, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/default/_app.py", line 30, in run
sys.exit(main(sys.argv))
File "fully_connected_feed.py", line 224, in main
run_training()
File "fully_connected_feed.py", line 130, in run_training
data_sets = input_data.read_data_sets(FLAGS.train_dir, FLAGS.fake_data)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/examples/tutorials/mnist/input_data.py", line 198, in read_data_sets
local_file = maybe_download(TRAIN_IMAGES, train_dir)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/examples/tutorials/mnist/input_data.py", line 42, in maybe_download
tf.gfile.Copy(temp_file_name, filepath)
AttributeError: 'module' object has no attribute 'Copy'

I have also tried uninstalling and reinstalling TensorFlow. I don't think it's a problem with the installation since some examples run properly. Anyone else facing this too?

@vrv vrv added the bug label Feb 15, 2016
@vrv
Copy link

vrv commented Feb 15, 2016

This looks like a bug, a missing function that we need to implement. Thanks for reporting.

@vrv vrv self-assigned this Feb 16, 2016
@vrv vrv closed this as completed in 0ee27e3 Feb 16, 2016
@jkschin
Copy link
Author

jkschin commented Feb 16, 2016

Thanks for the fix. I have verified that Copy is back. But it's still missing Open.

File "/usr/local/lib/python2.7/dist-packages/tensorflow/examples/tutorials/mnist/input_data.py", line 57, in extract_images
with tf.gfile.Open(filename) as f, gzip.GzipFile(fileobj=f) as bytestream:
AttributeError: 'module' object has no attribute 'Open'

@vrv
Copy link

vrv commented Feb 16, 2016

Yep, I have another fix for that coming.

vrv pushed a commit to vrv/tensorflow that referenced this issue Feb 17, 2016
vrv pushed a commit that referenced this issue Feb 17, 2016
@aselle aselle added type:bug Bug and removed bug labels Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants