api-interfaces icon indicating copy to clipboard operation
api-interfaces copied to clipboard

cmake issue with tensors.proto

Open aleksei-tro opened this issue 2 years ago • 2 comments
trafficstars

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

aleksei-tro avatar Nov 25 '22 02:11 aleksei-tro

Same problem here.

Brayyan avatar Nov 27 '22 16:11 Brayyan

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.

arsenetar avatar Nov 28 '22 01:11 arsenetar