InvokeAI
InvokeAI copied to clipboard
[bug]: doesn't work on macOS M1
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
macOS
GPU
cuda
VRAM
16GB
What happened?
- run
python3 scripts/invoke.py --web - 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
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.
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`.
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 ...)
What happened?
- run
python3 scripts/invoke.py --web- 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 ;)
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.
invoke.sh
I got this error zsh: command not found: invoke.sh
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-requirementsdirectory.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
@mauwii ./invoke.sh worked for me - Thanks!