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

cmake issue with tensors.proto #48

Open
aleksei-tro opened this issue Nov 25, 2022 · 2 comments
Open

cmake issue with tensors.proto #48

aleksei-tro opened this issue Nov 25, 2022 · 2 comments

Comments

@aleksei-tro
Copy link

Trying to follow the instructions to build API interface. cmake runs fine, but cmake --build failswith the following

➜  api-interfaces git:(main) ✗ cmake --build .
[  2%] Generating gooseai/dashboard/dashboard_grpc.py
/Users/user/Desktop/generators/stability-diffusion/api-interfaces/src/tensorizer/proto: warning: directory does not exist.
[  5%] Generating gooseai/generation/generation_grpc.py
/Users/user/Desktop/generators/stability-diffusion/api-interfaces/src/tensorizer/proto: warning: directory does not exist.
tensors.proto: File not found.
generation.proto:4:1: Import "tensors.proto" was not found or had errors.
generation.proto:51:5: "tensors.Tensor" is not defined.
make[2]: *** [gooseai/generation/generation_grpc.py] Error 1
make[1]: *** [CMakeFiles/generated.dir/all] Error 2
make: *** [all] Error 2
➜  api-interfaces git:(main) ✗

Are there some undocumented dependencies I need to install?
I'm actually only interested in TS/JS, is it possible to make cmake only build those and bypass python altogether

@Brayyan
Copy link

Brayyan commented Nov 27, 2022

Same problem here.

@arsenetar
Copy link
Contributor

The error details seem to indicate that the repository was not cloned with submodules or the submodules were not initialized after clone. Either clone the repository with the --recurse-submodules flag, or run git submodule init inside the repository after cloning.

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

3 participants