Stability-AI / api-interfaces

Interface definitions for API interactions between components
141 stars 78 forks source link

cmake issue with tensors.proto #48

Open aleksei-tro opened 1 year ago

aleksei-tro commented 1 year ago

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 commented 1 year ago

Same problem here.

arsenetar commented 1 year ago

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.