Open kellycvcv opened 5 years ago
The same error, did you solve it?
Not a hard issue, I solved it by jump to the outer directory(the folder outside aster), then simply execute the command again, the reason is because the import code implemented in rnn_cell.proto and others was wirtten in fixed path.
@LinanYaooo I jump to the outer directory but didn not solve the probelm,why?
@Lemonyue I found that after downloading this project, the project'name is 'aster-master' instead of 'aster', but 'aster' in .proto . So modify project'name to 'aster', and then run "protoc aster/protoc/.proto --python_out=." , it's useful.
aster/protos/rnn_cell.proto:7:3: Expected "required", "optional", or "repeated". aster/protos/rnn_cell.proto:7:24: Missing field number. aster/protos/hyperparams.proto:44:3: Expected "required", "optional", or "repeated". aster/protos/hyperparams.proto:44:27: Missing field number. aster/protos/hyperparams.proto:64:3: Expected "required", "optional", or "repeated". aster/protos/hyperparams.proto:64:27: Missing field number. aster/protos/bidirectional_rnn.proto: Import "aster/protos/rnn_cell.proto" was not found or had errors. aster/protos/bidirectional_rnn.proto: Import "aster/protos/hyperparams.proto" was not found or had errors. aster/protos/bidirectional_rnn.proto:9:12: "RnnCell" is not defined. aster/protos/bidirectional_rnn.proto:10:12: "Regularizer" is not defined. aster/protos/bidirectional_rnn.proto:12:12: "Hyperparams" is not defined.