tensorflow retrain.py app.run() got unexpected keyword argument 'argv'
Please check your sample's version. I met the same problem and finally solved it. I found my tf version is 0.11, but I downloaded the master one,
then I compare the code asyntax difference.
I am trying to run the Tensorflow for Poets sample.  I pass the following:
python examples/image_retraining/retrain.py --bottlenext_dir=tf_files/bottlenecks --how_many_training_steps 500 --model_dir=tf_files/inception --output_graph=tf_files/retrained_graph.pb --output_labels=tf_files/retrained_labels.txt --image_dir tf_files/flower_photos
I get the error 
File "examples/image_retraining/retrain.py", line 1013, in <module>
    tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
TypeError: run() got an unexpected keyword argument 'argv'
When I check the source of app.py it shows argv as an argument.  According to t.version I am running 0.11.0rc0
Any ideas?