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.65k stars 1.66k forks source link

Error running make build on local #2397

Open PrimeTimeTran opened 1 month ago

PrimeTimeTran commented 1 month ago

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

Expected behavior

Logs

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.

qdrddr commented 3 weeks ago

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.