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

Error running make build on local #2397

Open
PrimeTimeTran opened this issue May 24, 2024 · 1 comment
Open

Error running make build on local #2397

PrimeTimeTran opened this issue May 24, 2024 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@PrimeTimeTran
Copy link

LocalAI version:
Where to find? Advise and I'll update

Environment, CPU architecture, OS, and Version:

$ system_profiler SPHardwareDataType SPSoftwareDataType SPNetworkDataType

Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: Mac15,7
      Model Number: Z1AF0019MLL/A
      Chip: Apple M3 Pro
      Total Number of Cores: 12 (6 performance and 6 efficiency)
      Memory: 18 GB
      System Firmware Version: 10151.81.1
      OS Loader Version: 10151.81.1
      Serial Number (system): DGXL7Y6L4M
      Hardware UUID: 9ADCBC07-4367-5F24-8527-18221CD37297
      Provisioning UDID: 00006030-000468910E28001C
      Activation Lock Status: Enabled

Software:

    System Software Overview:

      System Version: macOS 14.3 (23D56)
      Kernel Version: Darwin 23.3.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Loi’s MacBook Pro
      User Name: Loi Tran (future)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Disabled
      Time since boot: 3 days, 21 hours, 1 minute

Network:

    Ethernet Adapter (en4):

      Type: Ethernet
      Hardware: Ethernet
      BSD Device Name: en4
      IPv4:
          Configuration Method: DHCP
      IPv6:
          Configuration Method: Automatic
      Ethernet:
          MAC Address: 92:ef:00:62:eb:ad
          Media Options: 
          Media Subtype: none
      Proxies:
          Exceptions List: *.local, 169.254/16
          FTP Passive Mode: Yes
      Service Order: 0

    Ethernet Adapter (en5):

      Type: Ethernet
      Hardware: Ethernet
      BSD Device Name: en5
      IPv4:
          Configuration Method: DHCP
      IPv6:
          Configuration Method: Automatic
      Ethernet:
          MAC Address: 92:ef:00:62:eb:ae
          Media Options: 
          Media Subtype: none
      Proxies:
          Exceptions List: *.local, 169.254/16
          FTP Passive Mode: Yes
      Service Order: 1

    USB 10/100/1000 LAN:

      Type: Ethernet
      Hardware: Ethernet
      BSD Device Name: en6
      IPv4:
          Configuration Method: DHCP
      IPv6:
          Configuration Method: Automatic
      Proxies:
          Exceptions List: *.local, 169.254/16
          FTP Passive Mode: Yes
      Service Order: 2

    Thunderbolt Bridge:

      Type: Ethernet
      Hardware: Ethernet
      BSD Device Name: bridge0
      IPv4:
          Configuration Method: DHCP
      IPv6:
          Configuration Method: Automatic
      Proxies:
          Exceptions List: *.local, 169.254/16
          FTP Passive Mode: Yes
      Service Order: 3

    Wi-Fi:

      Type: AirPort
      Hardware: AirPort
      BSD Device Name: en0
      IPv4 Addresses: 10.0.0.243
      IPv4:
          Additional Routes:
              Destination Address: 10.0.0.243
              Subnet Mask: 255.255.255.255
              Destination Address: 169.254.0.0
              Subnet Mask: 255.255.0.0
          Addresses: 10.0.0.243
          ARP Resolved Hardware Address: 88:9e:68:f2:d7:9d
          ARP Resolved IP Address: 10.0.0.1
          Configuration Method: DHCP
          Confirmed Interface Name: en0
          Interface Name: en0
          Network Signature: IPv4.Router=10.0.0.1;IPv4.RouterHardwareAddress=88:9e:68:f2:d7:9d
          Router: 10.0.0.1
          Subnet Masks: 255.255.255.0
      IPv6:
          Addresses: 2601:346:b80:4a00:1410:9abd:c19f:347d, 2601:346:b80:4a00:7187:4f9d:35da:84f, 2601:346:b80:4a00::7106, 2601:346:b80:4a00:c8ab:46e4:8a43:dc5b, 2601:346:b80:4a00:e430:7263:18ff:7725, 2601:346:b80:4a00:bd64:2f1c:5880:377f
          Configuration Method: Automatic
          Confirmed Interface Name: en0
          Interface Name: en0
          Network Signature: IPv6.Prefix=2601:346:b80:4a00::/64;IPv6.RouterHardwareAddress=88:9e:68:f2:d7:9d
          Prefix Length: 64, 64, 64, 64, 64, 64
          Router: fe80::8a9e:68ff:fef2:d79d
      DNS:
          Domain Name: hsd1.fl.comcast.net
          Server Addresses: 75.75.75.75, 75.75.76.76, 2001:558:feed::1, 2001:558:feed::2
      DHCP Server Responses:
          Domain Name: hsd1.fl.comcast.net
          Domain Name Servers: 75.75.75.75,75.75.76.76
          Lease Duration (seconds): 0
          DHCP Message Type: 0x05
          Routers: 10.0.0.1
          Server Identifier: 10.0.0.1
          Subnet Mask: 255.255.255.0
      Ethernet:
          MAC Address: 80:a9:97:2b:ed:9d
          Media Options: 
          Media Subtype: Auto Select
      Proxies:
          Exceptions List: *.local, 169.254/16
          FTP Passive Mode: Yes
      Service Order: 4

Describe the bug

Cannot run locally due to missing package. Trying to debug an issue with a model when I ran with dockers compose. I installed dependencies for go and python but keep getting this error.

go: github.com/go-skynet/LocalAI/pkg/grpc/proto: no matching versions for query "upgrade"

To Reproduce

  • Install dependencies
brew install abseil cmake go grpc protobuf protoc-gen-go protoc-gen-go-grpc python wget
  • Clone project.
  • Cd LocalAI
  • Install dependencies.
$ go mod download                                                                        

Expected behavior

Logs

  • Make Build
$ make build
go mod edit -replace github.com/donomii/go-rwkv.cpp=/Users/future/Documents/Work/LocalAI/sources/go-rwkv.cpp
go mod edit -replace github.com/ggerganov/whisper.cpp=/Users/future/Documents/Work/LocalAI/sources/whisper.cpp
go mod edit -replace github.com/ggerganov/whisper.cpp/bindings/go=/Users/future/Documents/Work/LocalAI/sources/whisper.cpp/bindings/go
go mod edit -replace github.com/go-skynet/go-bert.cpp=/Users/future/Documents/Work/LocalAI/sources/go-bert.cpp
go mod edit -replace github.com/M0Rf30/go-tiny-dream=/Users/future/Documents/Work/LocalAI/sources/go-tiny-dream
go mod edit -replace github.com/mudler/go-piper=/Users/future/Documents/Work/LocalAI/sources/go-piper
go mod edit -replace github.com/mudler/go-stable-diffusion=/Users/future/Documents/Work/LocalAI/sources/go-stable-diffusion
go mod edit -replace github.com/nomic-ai/gpt4all/gpt4all-bindings/golang=/Users/future/Documents/Work/LocalAI/sources/gpt4all/gpt4all-bindings/golang
go mod edit -replace github.com/go-skynet/go-llama.cpp=/Users/future/Documents/Work/LocalAI/sources/go-llama.cpp
go mod download
mkdir -p backend-assets/grpc
go build -ldflags " -X "github.com/go-skynet/LocalAI/internal.Version=v2.15.0-84-gee4f722" -X "github.com/go-skynet/LocalAI/internal.Commit=ee4f722bf8ef5cf597c7168c760933ba365e5b3b"" -tags "" -o backend-assets/grpc/huggingface ./backend/go/llm/langchain/
pkg/grpc/backend.go:7:2: no required module provides package github.com/go-skynet/LocalAI/pkg/grpc/proto; to add it:
        go get github.com/go-skynet/LocalAI/pkg/grpc/proto
make: *** [backend-assets/grpc/huggingface] Error 1
(base) 

Additional context

Trying to get that package I get this error.

future in ~/Documents/Work/LocalAI (master●●master) (venv) 
$ go get github.com/go-skynet/LocalAI/pkg/grpc/proto

go: github.com/go-skynet/LocalAI/pkg/grpc/proto: no matching versions for query "upgrade"
(base) 

Please advise. Thanks in advance.

@PrimeTimeTran PrimeTimeTran added bug Something isn't working unconfirmed labels May 24, 2024
@PrimeTimeTran PrimeTimeTran changed the title Cannot run on my local. Error running make build on local May 24, 2024
@qdrddr
Copy link

qdrddr commented Jun 13, 2024

I have the same issue. It seems like LocalAI requires a specific version of the protobuf library, that is not installed with Brew. The problem could be with brew not correctly linking the library or with the LocalAI hardcoded version of the library.

But the general problem with macOS & LocalAI is its constantly misaligned library required by localai with the library available on mac, hope that part can be improved in localai.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants