mudler / LocalAI

:robot: The free, Open Source OpenAI alternative. Self-hosted, community-driven and local-first. Drop-in replacement for OpenAI running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. It allows to generate Text, Audio, Video, Images. Also with voice cloning capabilities.
https://localai.io
MIT License
21.75k stars 1.66k forks source link

Can't build master on MacOS. Fatal: pkg/grpc/client.go:10:2: no required module provides package github.com/go-skynet/LocalAI/api/schema #1475

Closed netandreus closed 6 months ago

netandreus commented 6 months ago

LocalAI version:

Version: master Also tried master branch with latest commit - 9ae47d37e997729c3f80e5849b7326d8e71e6900

Environment, CPU architecture, OS, and Version:

MacOS Ventura 13.5.2 (22G91)
Apple Silicon M2

Describe the bug

I can't build version master of LocalAI.

To Reproduce

Expected behavior

Corrected build process.

Logs

Cloning into '/Users/andrey/sandbox/llm/current/build_local/sources/go-stable-diffusion/ncnn'...
remote: Enumerating objects: 33635, done.
remote: Counting objects: 100% (295/295), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 33635 (delta 161), reused 169 (delta 87), pack-reused 33340
Receiving objects: 100% (33635/33635), 23.85 MiB | 3.82 MiB/s, done.
Resolving deltas: 100% (28379/28379), done.
Cloning into '/Users/andrey/sandbox/llm/current/build_local/sources/go-stable-diffusion/stable-diffusion'...
remote: Enumerating objects: 1412, done.
remote: Counting objects: 100% (193/193), done.
remote: Compressing objects: 100% (140/140), done.
remote: Total 1412 (delta 53), reused 136 (delta 40), pack-reused 1219
Receiving objects: 100% (1412/1412), 154.35 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (630/630), done.
Submodule path 'ncnn': checked out '2b87dc2cf7f07416c3781e71a478fd185d4fdfcb'
Submodule 'glslang' (https://github.com/KhronosGroup/glslang) registered for path 'ncnn/glslang'
Submodule 'python/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'ncnn/python/pybind11'
Cloning into '/Users/andrey/sandbox/llm/current/build_local/sources/go-stable-diffusion/ncnn/glslang'...
remote: Enumerating objects: 55019, done.
remote: Counting objects: 100% (531/531), done.
remote: Compressing objects: 100% (238/238), done.
remote: Total 55019 (delta 337), reused 438 (delta 289), pack-reused 54488
Receiving objects: 100% (55019/55019), 70.33 MiB | 5.03 MiB/s, done.
Resolving deltas: 100% (46229/46229), done.
Cloning into '/Users/andrey/sandbox/llm/current/build_local/sources/go-stable-diffusion/ncnn/python/pybind11'...
remote: Enumerating objects: 27476, done.
remote: Counting objects: 100% (227/227), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 27476 (delta 124), reused 190 (delta 108), pack-reused 27249
Receiving objects: 100% (27476/27476), 10.75 MiB | 4.85 MiB/s, done.
Resolving deltas: 100% (19311/19311), done.
Submodule path 'ncnn/glslang': checked out '88fd417b0bb7d91755961c70e846d274c182f2b0'
Submodule path 'ncnn/python/pybind11': checked out '80dc998efced8ceb2be59756668a7e90e8bef917'
Submodule path 'stable-diffusion': checked out 'bac5d4a71a442e9e9fab4a1e30ca203a7c7d3272'
cd sources/go-stable-diffusion && git checkout -b build 902db5f066fd137697e3b69d0fa10d4782bd2c2f && git submodule update --init --recursive --depth 1
Switched to a new branch 'build'
touch get-sources
go mod edit -replace github.com/nomic-ai/gpt4all/gpt4all-bindings/golang=/Users/andrey/sandbox/llm/current/build_local/sources/gpt4all/gpt4all-bindings/golang
go mod edit -replace github.com/go-skynet/go-ggml-transformers.cpp=/Users/andrey/sandbox/llm/current/build_local/sources/go-ggml-transformers
go mod edit -replace github.com/donomii/go-rwkv.cpp=/Users/andrey/sandbox/llm/current/build_local/sources/go-rwkv
go mod edit -replace github.com/ggerganov/whisper.cpp=/Users/andrey/sandbox/llm/current/build_local/sources/whisper.cpp
go mod edit -replace github.com/ggerganov/whisper.cpp/bindings/go=/Users/andrey/sandbox/llm/current/build_local/sources/whisper.cpp/bindings/go
go mod edit -replace github.com/go-skynet/go-bert.cpp=/Users/andrey/sandbox/llm/current/build_local/sources/go-bert
go mod edit -replace github.com/mudler/go-stable-diffusion=/Users/andrey/sandbox/llm/current/build_local/sources/go-stable-diffusion
go mod edit -replace github.com/mudler/go-piper=/Users/andrey/sandbox/llm/current/build_local/sources/go-piper
go mod download
touch prepare-sources
touch prepare
mkdir -p backend-assets/grpc
go build -ldflags " -X "github.com/go-skynet/LocalAI/internal.Version=v2.1.0-12-g9ae47d3" -X "github.com/go-skynet/LocalAI/internal.Commit=9ae47d37e997729c3f80e5849b7326d8e71e6900"" -tags "" -o backend-assets/grpc/langchain-huggingface ./backend/go/llm/langchain/
pkg/grpc/client.go:10:2: no required module provides package github.com/go-skynet/LocalAI/api/schema; to add it:
    go get github.com/go-skynet/LocalAI/api/schema
make: *** [backend-assets/grpc/langchain-huggingface] Error 1
netandreus commented 6 months ago

Release 2.2.0 built correct. Thank you @mudler !