Tensorflow access denied in config_util.py while training












1















I have a problem with training a model in tensorflow. I am working on Windows 10. When I run the command:



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


from C:/Tensorflow/models/research to start the training process I get an error in line 95 (proto_str = f.read()) from the config_util.py script. Below
you can see my whole console output:



Traceback (most recent call last):
File "./object_detection/model_main.py", line 109, in <module>
tf.app.run()
File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformapp.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:Tensorflowmodelsresearchobject_detectionmodel_lib.py", line 536, in create_estimator_and_inputs
config_override=config_override)
File "C:Tensorflowmodelsresearchobject_detectionutilsconfig_util.py", line 95, in get_configs_from_pipeline_file
proto_str = f.read()
File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 125, in read
self._preread_check()
File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 85, in _preread_check
compat.as_bytes(self.__name), 1024 * 512, status)
File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkerrors_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


The error is in the last two lines: Zugriff verweigert is german and means access denied.

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. C:UserslucciDocuments I get the same error. The problem still remains when I run the console as admin, when I try the command runas /user:lucci ... and
so on.



Can anyone help me with this?
I am using Python3.6.



EDIT: This also not helps: Tensorflow Windows Accessing Folders Denied:"NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error"










share|improve this question





























    1















    I have a problem with training a model in tensorflow. I am working on Windows 10. When I run the command:



    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


    from C:/Tensorflow/models/research to start the training process I get an error in line 95 (proto_str = f.read()) from the config_util.py script. Below
    you can see my whole console output:



    Traceback (most recent call last):
    File "./object_detection/model_main.py", line 109, in <module>
    tf.app.run()
    File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformapp.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:Tensorflowmodelsresearchobject_detectionmodel_lib.py", line 536, in create_estimator_and_inputs
    config_override=config_override)
    File "C:Tensorflowmodelsresearchobject_detectionutilsconfig_util.py", line 95, in get_configs_from_pipeline_file
    proto_str = f.read()
    File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 125, in read
    self._preread_check()
    File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 85, in _preread_check
    compat.as_bytes(self.__name), 1024 * 512, status)
    File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkerrors_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


    The error is in the last two lines: Zugriff verweigert is german and means access denied.

    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. C:UserslucciDocuments I get the same error. The problem still remains when I run the console as admin, when I try the command runas /user:lucci ... and
    so on.



    Can anyone help me with this?
    I am using Python3.6.



    EDIT: This also not helps: Tensorflow Windows Accessing Folders Denied:"NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error"










    share|improve this question



























      1












      1








      1








      I have a problem with training a model in tensorflow. I am working on Windows 10. When I run the command:



      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


      from C:/Tensorflow/models/research to start the training process I get an error in line 95 (proto_str = f.read()) from the config_util.py script. Below
      you can see my whole console output:



      Traceback (most recent call last):
      File "./object_detection/model_main.py", line 109, in <module>
      tf.app.run()
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformapp.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:Tensorflowmodelsresearchobject_detectionmodel_lib.py", line 536, in create_estimator_and_inputs
      config_override=config_override)
      File "C:Tensorflowmodelsresearchobject_detectionutilsconfig_util.py", line 95, in get_configs_from_pipeline_file
      proto_str = f.read()
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 125, in read
      self._preread_check()
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 85, in _preread_check
      compat.as_bytes(self.__name), 1024 * 512, status)
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkerrors_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


      The error is in the last two lines: Zugriff verweigert is german and means access denied.

      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. C:UserslucciDocuments I get the same error. The problem still remains when I run the console as admin, when I try the command runas /user:lucci ... and
      so on.



      Can anyone help me with this?
      I am using Python3.6.



      EDIT: This also not helps: Tensorflow Windows Accessing Folders Denied:"NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error"










      share|improve this question
















      I have a problem with training a model in tensorflow. I am working on Windows 10. When I run the command:



      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


      from C:/Tensorflow/models/research to start the training process I get an error in line 95 (proto_str = f.read()) from the config_util.py script. Below
      you can see my whole console output:



      Traceback (most recent call last):
      File "./object_detection/model_main.py", line 109, in <module>
      tf.app.run()
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformapp.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:Tensorflowmodelsresearchobject_detectionmodel_lib.py", line 536, in create_estimator_and_inputs
      config_override=config_override)
      File "C:Tensorflowmodelsresearchobject_detectionutilsconfig_util.py", line 95, in get_configs_from_pipeline_file
      proto_str = f.read()
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 125, in read
      self._preread_check()
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonlibiofile_io.py", line 85, in _preread_check
      compat.as_bytes(self.__name), 1024 * 512, status)
      File "C:UserslucciAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonframeworkerrors_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


      The error is in the last two lines: Zugriff verweigert is german and means access denied.

      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. C:UserslucciDocuments I get the same error. The problem still remains when I run the console as admin, when I try the command runas /user:lucci ... and
      so on.



      Can anyone help me with this?
      I am using Python3.6.



      EDIT: This also not helps: Tensorflow Windows Accessing Folders Denied:"NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error"







      python tensorflow access-denied






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 20:39









      Ali AzG

      7131717




      7131717










      asked Nov 15 '18 at 19:56









      Lukas NothhelferLukas Nothhelfer

      868




      868
























          1 Answer
          1






          active

          oldest

          votes


















          3














          I finally found the solution on my own. It does not matter if you are operating on Linux or Windows.
          When you run the command you always have to specify the full path to the pipeline.config file.
          So, when your pipeline.config-file is located in C:/ObjectDetection/Model/pipeline.config it is not
          sufficient to specify the location like C:/ObjectDetection/. You have to specify the location
          as C:/ObjectDetection/pipeline.config.



          Running the command again with the full path for the Parameter --pipeline_config_file works great!!!






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53327026%2ftensorflow-access-denied-in-config-util-py-while-training%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            I finally found the solution on my own. It does not matter if you are operating on Linux or Windows.
            When you run the command you always have to specify the full path to the pipeline.config file.
            So, when your pipeline.config-file is located in C:/ObjectDetection/Model/pipeline.config it is not
            sufficient to specify the location like C:/ObjectDetection/. You have to specify the location
            as C:/ObjectDetection/pipeline.config.



            Running the command again with the full path for the Parameter --pipeline_config_file works great!!!






            share|improve this answer




























              3














              I finally found the solution on my own. It does not matter if you are operating on Linux or Windows.
              When you run the command you always have to specify the full path to the pipeline.config file.
              So, when your pipeline.config-file is located in C:/ObjectDetection/Model/pipeline.config it is not
              sufficient to specify the location like C:/ObjectDetection/. You have to specify the location
              as C:/ObjectDetection/pipeline.config.



              Running the command again with the full path for the Parameter --pipeline_config_file works great!!!






              share|improve this answer


























                3












                3








                3







                I finally found the solution on my own. It does not matter if you are operating on Linux or Windows.
                When you run the command you always have to specify the full path to the pipeline.config file.
                So, when your pipeline.config-file is located in C:/ObjectDetection/Model/pipeline.config it is not
                sufficient to specify the location like C:/ObjectDetection/. You have to specify the location
                as C:/ObjectDetection/pipeline.config.



                Running the command again with the full path for the Parameter --pipeline_config_file works great!!!






                share|improve this answer













                I finally found the solution on my own. It does not matter if you are operating on Linux or Windows.
                When you run the command you always have to specify the full path to the pipeline.config file.
                So, when your pipeline.config-file is located in C:/ObjectDetection/Model/pipeline.config it is not
                sufficient to specify the location like C:/ObjectDetection/. You have to specify the location
                as C:/ObjectDetection/pipeline.config.



                Running the command again with the full path for the Parameter --pipeline_config_file works great!!!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 18 '18 at 20:57









                Lukas NothhelferLukas Nothhelfer

                868




                868
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53327026%2ftensorflow-access-denied-in-config-util-py-while-training%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Florida Star v. B. J. F.

                    Danny Elfman

                    Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues