InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: doesn't work on macOS M1

Open taishi55 opened this issue 2 years ago • 7 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

macOS

GPU

cuda

VRAM

16GB

What happened?

  1. run python3 scripts/invoke.py --web
  2. then error ModuleNotFoundError: No module named 'ldm' is displayed

Screenshots

No response

Additional context

#723 is closed, but I think the issue is not fixed yet

Contact Details

No response

taishi55 avatar Dec 11 '22 08:12 taishi55

@taishi55 You should only run python scripts/invoke.py --web directly if you manually installed (git clone'd the repo, and set up a conda environment).

And if you did manually install, you need to activate the conda environment first e.g. conda activate invokeai.

If you did not manually install, and instead used the automated installer, you need to instead run the invoke.sh script to start InvokeAI.

psychedelicious avatar Dec 11 '22 21:12 psychedelicious

i'm clone'd the repo and typed conda activate invokeai, return:

EnvironmentNameNotFound: Could not find conda environment: invokeai
You can list all discoverable environments with `conda info --envs`.

GGGGGHT avatar Dec 12 '22 04:12 GGGGGHT

i'm clone'd the repo and typed conda activate invokeai, return:

EnvironmentNameNotFound: Could not find conda environment: invokeai
You can list all discoverable environments with `conda info --envs`.

well, then you did not read the manual I guess 😜

Here are the steps to follow: https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/

(I am on M1 too and it works fine ...)

mauwii avatar Dec 12 '22 15:12 mauwii

What happened?

  1. run python3 scripts/invoke.py --web
  2. then error ModuleNotFoundError: No module named 'ldm' is displayed

From where do you run this command? Did you activate the virtual environment beforehand?

maybe also follow the steps from the manual (https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/), this way you would not need to run python yourself and can just use invoke.sh ;)

mauwii avatar Dec 12 '22 15:12 mauwii

I got this error when I create the conda env within the environments-and-requirements directory.

After copying the .yml out to root, (I deleted previous bad env) and I reran the env creation from root and it worked.

sutt avatar Dec 13 '22 01:12 sutt

invoke.sh

I got this error zsh: command not found: invoke.sh

taishi55 avatar Dec 13 '22 01:12 taishi55

invoke.sh

I got this error zsh: command not found: invoke.sh

I guess you entered invoke.sh into the Terminal. Try to write ./invoke.sh, or double click invoke.sh to fix it.

I got this error when I create the conda env within the environments-and-requirements directory.

After copying the .yml out to root, (I deleted previous bad env) and I reran the env creation from root and it worked.

This process is described here: https://invoke-ai.github.io/InvokeAI/installation/INSTALL_MANUAL/#conda-method

image

mauwii avatar Dec 13 '22 07:12 mauwii

@mauwii ./invoke.sh worked for me - Thanks!

CJohnDesign avatar Dec 30 '22 04:12 CJohnDesign