title: Tensorflow access denied in config_util.py while training
body: <p>I have a problem with training a model in <code>tensorflow</code>. I am working on Windows 10. When I run the command:</p>
  
  <pre><code>python ./object_detection/model_main.py --pipeline_config_path=C:/Tensorflow/object-detection/ssd_mobilenet_v1_coco_2018_01_28 --model_dir=C:/Tensorflow/object-detection/output-model --num_train_steps=50000 --sample_1_of_n_eval_examples=1 --alsologtostderr
  </code></pre>
  
  <p>from <code>C:/Tensorflow/models/research</code> to start the training process I get an error in line 95 <code>(proto_str = f.read())</code> from the <code>config_util.py</code> script. Below 
  you can see my whole console output:</p>
  
  <pre><code>Traceback (most recent call last):
    File "./object_detection/model_main.py", line 109, in &lt;module&gt;
      tf.app.run()
    File "C:\Users\lucci\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
      _sys.exit(main(argv))
    File "./object_detection/model_main.py", line 71, in main
      FLAGS.sample_1_of_n_eval_on_train_examples))
    File "C:\Tensorflow\models\research\object_detection\model_lib.py", line 536, in create_estimator_and_inputs
      config_override=config_override)
    File "C:\Tensorflow\models\research\object_detection\utils\config_util.py", line 95, in get_configs_from_pipeline_file
      proto_str = f.read()
    File "C:\Users\lucci\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 125, in read
      self._preread_check()
    File "C:\Users\lucci\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 85, in _preread_check
      compat.as_bytes(self.__name), 1024 * 512, status)
    File "C:\Users\lucci\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 528, in __exit__
      c_api.TF_GetCode(self.status.status))
  tensorflow.python.framework.errors_impl.UnknownError: NewRandomAccessFile failed to Create/Open: C:/Tensorflow/object-detection/ssd_mobilenet_v1_coco_2018_01_28 : Zugriff verweigert
  ; Input/output error
  </code></pre>
  
  <p>The error is in the last two lines: <code>Zugriff verweigert</code> is german and means <code>access denied</code>.<br>
  I am admin on this pc (it's my own pc) and i have FullControl to the folders (I double-checked it with PowerShell). When I try to move the folder to another
  place, e.g. <code>C:\Users\lucci\Documents\</code> I get the same error. The problem still remains when I run the console as admin, when I try the command <code>runas /user:lucci ...</code> and
  so on.</p>
  
  <p>Can anyone help me with this?
  I am using Python3.6.</p>
  
  <p><em>EDIT:</em> This also not helps: <a href="https://stackoverflow.com/questions/41116270/tensorflow-windows-accessing-folders-deniednewrandomaccessfile-failed-to-creat">Tensorflow Windows Accessing Folders Denied:&quot;NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error&quot;</a></p>