lollms-webui icon indicating copy to clipboard operation
lollms-webui copied to clipboard

Error for mac os installation

Open 0x-hugo opened this issue 1 year ago • 5 comments

I tried to run ./install.sh but I get the following error

Running setup.py install for sentencepiece ... error
  error: subprocess-exited-with-error

  × Running setup.py install for sentencepiece did not run successfully.
  │ exit code: 1
  ╰─> [86 lines of output]
      running install
      [...]
      ./build_bundled.sh: line 19: cmake: command not found
      ./build_bundled.sh: line 20: nproc: command not found
      ./build_bundled.sh: line 20: cmake: command not found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>

I checked the mac os installation details but none of the faq solved my issue. I'll be adding it to the docs and create the PR.

Also I get the following msg:

Downloading latest model
./install.sh: line 100: wget: command not found
Virtual environment created and packages installed successfully.
Every thing is setup. Just run run.sh

so I'm going to fix that too

0x-hugo avatar Apr 07 '23 01:04 0x-hugo

Have you tried using homebrew to install python3.11? That got me through the installation process- my run.sh still fails though (install script downloads gpt4all-lora-quantized-ggml.bin but doesn't convert it to gpt4all-converted.bin)

CaptainChemist avatar Apr 07 '23 02:04 CaptainChemist

Not sure if related to this issue, and these are minor but I needed to run: chmod +x install.sh and I had change the first line to just #!bash.

Edit: % which bash /usr/local/bin/bash

mkinney avatar Apr 07 '23 02:04 mkinney

Have you tried installing wget with brew, closing the terminal and running the installer again? brew install wget

nikeyes avatar Apr 07 '23 12:04 nikeyes

try to run

brew install cmake
brew install coreutils

Ulanmax avatar Apr 08 '23 11:04 Ulanmax

Can anyone make a install_macos.sh and test it? You can be inspired by the install.sh code

ParisNeo avatar Apr 08 '23 11:04 ParisNeo

can we get a brew package for this? there's one for arch.

ralyodio avatar May 18 '23 14:05 ralyodio

I am not a specialist in Mac, but if you know how to do it, fork the project, do your wizardry and then do a Pull Request.

ParisNeo avatar May 19 '23 12:05 ParisNeo