Proto Compilation Error - No such file or directory





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am trying to compile Protoc library but It just keeps giving me the error of No Such Directory even though it is there



I am following Google's Photobuf compilation steps
I have added Protoc to PATH environment variable as well.



But it simply won't see the object_detection/protos directory



protoc object_detection/protos/*.proto --python_out=.


enter image description here



The directory and the files are clearly there



enter image description here










share|improve this question























  • Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim`

    – vijay m
    Dec 3 '17 at 18:51













  • Did you try using a backslash `` rather than a forward slash / for the path to the files?

    – lit
    Dec 4 '17 at 7:45













  • @vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work.

    – Pirate X
    Dec 5 '17 at 10:20


















0















I am trying to compile Protoc library but It just keeps giving me the error of No Such Directory even though it is there



I am following Google's Photobuf compilation steps
I have added Protoc to PATH environment variable as well.



But it simply won't see the object_detection/protos directory



protoc object_detection/protos/*.proto --python_out=.


enter image description here



The directory and the files are clearly there



enter image description here










share|improve this question























  • Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim`

    – vijay m
    Dec 3 '17 at 18:51













  • Did you try using a backslash `` rather than a forward slash / for the path to the files?

    – lit
    Dec 4 '17 at 7:45













  • @vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work.

    – Pirate X
    Dec 5 '17 at 10:20














0












0








0


1






I am trying to compile Protoc library but It just keeps giving me the error of No Such Directory even though it is there



I am following Google's Photobuf compilation steps
I have added Protoc to PATH environment variable as well.



But it simply won't see the object_detection/protos directory



protoc object_detection/protos/*.proto --python_out=.


enter image description here



The directory and the files are clearly there



enter image description here










share|improve this question














I am trying to compile Protoc library but It just keeps giving me the error of No Such Directory even though it is there



I am following Google's Photobuf compilation steps
I have added Protoc to PATH environment variable as well.



But it simply won't see the object_detection/protos directory



protoc object_detection/protos/*.proto --python_out=.


enter image description here



The directory and the files are clearly there



enter image description here







tensorflow cmd compilation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 3 '17 at 16:34









Pirate XPirate X

1,62332034




1,62332034













  • Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim`

    – vijay m
    Dec 3 '17 at 18:51













  • Did you try using a backslash `` rather than a forward slash / for the path to the files?

    – lit
    Dec 4 '17 at 7:45













  • @vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work.

    – Pirate X
    Dec 5 '17 at 10:20



















  • Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim`

    – vijay m
    Dec 3 '17 at 18:51













  • Did you try using a backslash `` rather than a forward slash / for the path to the files?

    – lit
    Dec 4 '17 at 7:45













  • @vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work.

    – Pirate X
    Dec 5 '17 at 10:20

















Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim`

– vijay m
Dec 3 '17 at 18:51







Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim`

– vijay m
Dec 3 '17 at 18:51















Did you try using a backslash `` rather than a forward slash / for the path to the files?

– lit
Dec 4 '17 at 7:45







Did you try using a backslash `` rather than a forward slash / for the path to the files?

– lit
Dec 4 '17 at 7:45















@vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work.

– Pirate X
Dec 5 '17 at 10:20





@vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work.

– Pirate X
Dec 5 '17 at 10:20












3 Answers
3






active

oldest

votes


















3














Same issue with you.

I have been installed protoc with anaconda3,but it is useless.



This is my solution:

Head to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory.



Move this to models/research folder tensorflow model project



Next,you can use the protoc command like



protoc object_detection/protos/*.proto --python_out=.


Reference linking






share|improve this answer

































    2














    I was running into the same problem using the latest protoc version for windows: 3.5.0. On a whim I tried using the slightly older version (3.4.0) and got it to work using the exact same instructions.






    share|improve this answer































      2














      Use 3.4.0 version and run from object_detectionprotoc object_detection/protos/*.proto --python_out=.






      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%2f47620577%2fproto-compilation-error-no-such-file-or-directory%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        3














        Same issue with you.

        I have been installed protoc with anaconda3,but it is useless.



        This is my solution:

        Head to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory.



        Move this to models/research folder tensorflow model project



        Next,you can use the protoc command like



        protoc object_detection/protos/*.proto --python_out=.


        Reference linking






        share|improve this answer






























          3














          Same issue with you.

          I have been installed protoc with anaconda3,but it is useless.



          This is my solution:

          Head to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory.



          Move this to models/research folder tensorflow model project



          Next,you can use the protoc command like



          protoc object_detection/protos/*.proto --python_out=.


          Reference linking






          share|improve this answer




























            3












            3








            3







            Same issue with you.

            I have been installed protoc with anaconda3,but it is useless.



            This is my solution:

            Head to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory.



            Move this to models/research folder tensorflow model project



            Next,you can use the protoc command like



            protoc object_detection/protos/*.proto --python_out=.


            Reference linking






            share|improve this answer















            Same issue with you.

            I have been installed protoc with anaconda3,but it is useless.



            This is my solution:

            Head to the protoc releases page and download the protoc-3.4.0-win32.zip, extract it, and you will find protoc.exe in the bin directory.



            Move this to models/research folder tensorflow model project



            Next,you can use the protoc command like



            protoc object_detection/protos/*.proto --python_out=.


            Reference linking







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 15 '17 at 4:58

























            answered Dec 14 '17 at 14:19









            BowenBowen

            898




            898

























                2














                I was running into the same problem using the latest protoc version for windows: 3.5.0. On a whim I tried using the slightly older version (3.4.0) and got it to work using the exact same instructions.






                share|improve this answer




























                  2














                  I was running into the same problem using the latest protoc version for windows: 3.5.0. On a whim I tried using the slightly older version (3.4.0) and got it to work using the exact same instructions.






                  share|improve this answer


























                    2












                    2








                    2







                    I was running into the same problem using the latest protoc version for windows: 3.5.0. On a whim I tried using the slightly older version (3.4.0) and got it to work using the exact same instructions.






                    share|improve this answer













                    I was running into the same problem using the latest protoc version for windows: 3.5.0. On a whim I tried using the slightly older version (3.4.0) and got it to work using the exact same instructions.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 5 '17 at 23:19









                    Alex GAlex G

                    11617




                    11617























                        2














                        Use 3.4.0 version and run from object_detectionprotoc object_detection/protos/*.proto --python_out=.






                        share|improve this answer




























                          2














                          Use 3.4.0 version and run from object_detectionprotoc object_detection/protos/*.proto --python_out=.






                          share|improve this answer


























                            2












                            2








                            2







                            Use 3.4.0 version and run from object_detectionprotoc object_detection/protos/*.proto --python_out=.






                            share|improve this answer













                            Use 3.4.0 version and run from object_detectionprotoc object_detection/protos/*.proto --python_out=.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 27 '18 at 9:10









                            Naresh ReddyNaresh Reddy

                            211




                            211






























                                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%2f47620577%2fproto-compilation-error-no-such-file-or-directory%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.

                                Error while running script in elastic search , gateway timeout

                                Adding quotations to stringified JSON object values