bgshih / aster

Recognizing cropped text in natural images.
MIT License
726 stars 195 forks source link

protoc error #82

Open nbhupendra opened 5 years ago

nbhupendra commented 5 years ago

Please help Error getting -while running protoc aster/protos/.proto --python_out=. aster/protos/.proto: No such file or directory

shaohailin commented 4 years ago

same error

fink-stanislav commented 4 years ago

@nbhupendra do you run this command inside aster directory?

shaohailin commented 4 years ago

@fink-stanislav thanks for your reply! i have solved the problem. there are two ways to solve it method1. if you are inside aster directory ,run the command : protoc *.proto --python_out=. or method2. if you are inside aster's parent directory,run the command :protoc aster/protos/.proto --python_out=.

getcontrol commented 4 years ago

Is it protos or proto? Because the child directory is named protos (plural). Spelling matters. Does it matter here?

Regardless , neither protos nor proto works.

Current directory: /Users/me/aster ( I assume this is was you mean by "inside aster directory"). Aster directory looks like this:

├── LICENSE ├── README.md ├── builders ├── c_ops ├── convnets ├── core ├── data ├── data_decoders ├── demo ├── demo.py ├── eval.py ├── eval_util.py ├── evaluator.py ├── experiments ├── meta_architectures ├── overview.png ├── predictors ├── protos ├── tools ├── train.py ├── trainer.py └── utils I run the command: protoc *.proto --python_out=. *.proto: No such file or directory

Maybe its the spelling:: protoc *.protos --python_out=. *.protos: No such file or directory

jtwsmeal commented 4 years ago

If you're in the aster directory (for example, /Users/me/aster), the command should be protoc protos/*.proto --python_out=..