3

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

Pirate X
  • 2,839
  • 5
  • 32
  • 55
  • Did you add Libraries to PYTHONPATH: (From tensorflow/models/research/) export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim` – vijay m Dec 03 '17 at 18:51
  • Did you try using a backslash \`\\` rather than a forward slash `/` for the path to the files? – lit Dec 04 '17 at 07:45
  • @vijaym I think that is for Unix not Windows. ->lit Yes I did. Black slashes won't work. – Pirate X Dec 05 '17 at 10:20

3 Answers3

8

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

Aisuko
  • 184
  • 1
  • 10
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.

Alex G
  • 687
  • 5
  • 12
2

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