#Missing file?

17 messages · Page 1 of 1 (latest)

wary abyss
#

Install on M1 Mac went well, but get this error when I try to launch:

sh /Users/tholie/Downloads/InvokeAI/invoke.sh
/Users/tholie/Downloads/InvokeAI/invoke.sh: line 5: .venv/bin/activate: No such file or directory

What am I missing?

carmine mortar
#

Try this and see if it works:

cd /Users/tholie/Downloads/InvokeAI

eval "$(conda shell.zsh hook)"

conda activate invokeai

python3 -u scripts/invoke.py --web
wary abyss
#

tholie@VA04715-MAC ~ % cd /Users/tholie/Downloads/InvokeAI

eval "$(conda shell.zsh hook)"

conda activate invokeai

python3 -u scripts/invoke.py --web
zsh: command not found: conda
zsh: command not found: conda
Traceback (most recent call last):
File "/Users/tholie/Downloads/InvokeAI/scripts/invoke.py", line 3, in <module>
import ldm.invoke.CLI
ModuleNotFoundError: No module named 'ldm'
tholie@VA04715-MAC InvokeAI %

#

Thanks for quick response, this comes up with your command

carmine mortar
#

If conda cannot be found then it's not in your $PATH. Open the hidden file ~/.zshrc with your favorite text editor and at the bottom you should see something like this:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/tholie/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/tholie/miniconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/tholie/miniconda3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/tholie/miniconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

If this is block is missing then you may just need to reinstall miniconda3, making sure to invoke .zsh:

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
zsh Miniconda3-latest-MacOSX-arm64.sh

I recommend against installing all these things in your ~/Downloads folder. Instead, put everything together in a folder named StableDiffusion — but not within Documents or Desktop because it will use up your iCloud storage.

After the install, open a new Terminal window.

#

Of course, this all assumes you are using the default zsh shell (not bash).

wary abyss
#

Okay I'm a noob at this sorry. The wget command didn't work, said command not found. I done a fresh install in my home folder now like you said. It says zsh in my terminal at the top, just using the default one from Applications.

Where do I find the hidden file? I have made it so that my Mac shows hidden files, but can't find it anyway.

carmine mortar
#

Where do I find the hidden file?
You can view/edit it with nano ~/.zshrc and it's most likely you will not need to edit it yourself.

wary abyss
#

That command worked, and now the hidden file is correct like you described. However it still isn't working. Here is what came out of terminal this time:

(base) tholie@VA04715-MAC ~ % cd /Users/tholie/Stable\ Diffusion/InvokeAI
(base) tholie@VA04715-MAC InvokeAI % eval "$(conda shell.zsh hook)"

conda activate invokeai

python3 -u scripts/invoke.py --web
Could not find conda environment: invokeai
You can list all discoverable environments with conda info --envs.

Traceback (most recent call last):
File "/Users/tholie/Stable Diffusion/InvokeAI/scripts/invoke.py", line 3, in <module>
import ldm.invoke.CLI
ModuleNotFoundError: No module named 'ldm'
(base) tholie@VA04715-MAC InvokeAI %

carmine mortar
#

If conda can't see your invokeai environment, go back to square one and start over from the beginning with the install process.

wary abyss
#

I did that now and still the same errors

#

fresh install, new folders, everything new, but still the same

#

Hold on, I see now I was re-installing using the older version, let me try downloading the newest one

#

Okay now it works lol

#

I see now on the website that the binary version that I started with has a broken install