Protoc cannot find files in Windows 7

I am trying to run the high-level object detection API that I found in Gentub Tensorflow. One step is to compile the module as follows:

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

When I do this, I get the following message:

object_detection\protos\*.proto: No such file or directory

Any idea? I am running windows 7

EDIT: if I run:

protoc --python_out=. *.proto

from the right folder, I get:

*.proto: No such file or directory
0
source share
4 answers

Windows cmd does not accept wildcard (*). So * .proto does not match because you do not have a file with a name *.proto.

If you want to apply protoc --python_out=. filepath, you must use a loop foror issue protocmanually for all files individually.

+1
source

'*' - . . , - proto .

C:/Users/kc/Desktop/bin/protoc object_detection/protos/(file name in proto folder).proto --python_out=.

, .

, proto 3.4 bin .

+1

pwd, , python.exe , object_detection , os.getcwd() , , , , os.chdir() "enter" , , , .

0

Windows 10 cmd:

C:\your\path\tensorflow\models\research>"C:\your\path\protoc-3.4.0-win32\bin\protoc.exe" object_detection/protos/*.proto --python_out=.

If it runs without any errors or messages, it worked.

I used protoc version 3.4.0 for this process.

Link to this question about static checks .

0
source

Source: https://habr.com/ru/post/1686653/


All Articles