Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to compile simulation.proto with protoc ? #1

Open
nanxintin opened this issue Dec 21, 2017 · 1 comment
Open

how to compile simulation.proto with protoc ? #1

nanxintin opened this issue Dec 21, 2017 · 1 comment

Comments

@nanxintin
Copy link

Hi, I am new to protobuf and get some errors when compiling simulation.proto.
I have installed the s2clientprotocol and run "protoc --python_out=. simulation.proto", but it failed.
"""
s2clientprotocol/sc2api.proto: File not found.
simulation.proto: Import "s2clientprotocol/sc2api.proto" was not found or had errors.
simulation.proto:29:14: "SC2APIProtocol.Observation" is not defined.
"""
Could you give me some advice on how to solve this error and compile simulation.proto?

@lschmelzeisen
Copy link
Owner

Hi. First of all, nice to see some interest in this project!

Regarding the compilation of protobuf, I hope to provide some automatic means of compiling it in the future. I might find time for this in the next week. In the meanwhile you will have to do manual compilation. To do that, you will have to take the *.proto files from the s2client-proto repo and put them in a folder named s2clientprotocol relative to from where you are calling the protoc command I think.

Note, however, that the code in this project was written for some older versions of the game, PySC2 and the s2clientprotocol. I don't know whether the code works for the current version. I might also get around to updating that during the next weeks though.

In any case, let me know if you have any further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants