InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Unable to install Invoke AI on M1 Mac

Open prendell opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

macOS

GPU

cuda

VRAM

16

What happened?

I am unable to get everything installed for invoke ai. i get this when i try to run

configure_invokeai.py --root=.

configure_invokeai.py --root=.

#!/usr/bin/env bash

set -eu

if [ $# -ge 1 ] && [ "${1:0:2}" == "-h" ]; then echo "Usage: update.sh " echo "Updates InvokeAI to use the indicated version of the code base." echo "Find the version or branch for the release you want, and pass it as the argument." echo "For example: update.sh v2.2.5 for release 2.2.5." echo " update.sh main for the current development version." echo "" echo "If no argument provided then will install the version tagged with 'latest', equivalent to" echo "update.sh latest" exit -1 fi

INVOKE_AI_VERSION=${1:-latest}

INVOKE_AI_SRC="https://github.com/invoke-ai/InvokeAI/archive/$INVOKE_AI_VERSION.zip" INVOKE_AI_DEP=https://raw.githubusercontent.com/invoke-ai/InvokeAI/$INVOKE_AI_VERSION/environments-and-requirements/requirements-base.txt

ensure we're in the correct folder in case user's CWD is somewhere else

scriptdir=$(dirname "$0") cd "$scriptdir"

function _err_exit { if test "$1" -ne 0 then echo "Something went wrong while installing InvokeAI and/or its requirements." echo "Update cannot continue. Please report this error to https://github.com/invoke-ai/InvokeAI/issues" echo -e "Error code $1; Error caught was '$2'" read -p "Press any key to exit..." exit fi }

if ! curl -I "$INVOKE_AI_DEP" -fs >/dev/null; then echo '$INVOKE_AI_VERSION' is not a known branch name or tag. Please check the version and try again. exit fi

echo This script will update InvokeAI and all its dependencies to version '$INVOKE_AI_VERSION'. echo If you do not want to do this, press control-C now! read -p "Press any key to continue, or CTRL-C to exit..."

curl -L "$INVOKE_AI_DEP" > environments-and-requirements/requirements-base.txt

. .venv/bin/activate

./.venv/bin/python -mpip install -r requirements.txt _err_exit $? "The pip program failed to install InvokeAI's requirements."

./.venv/bin/python -mpip install $INVOKE_AI_SRC _err_exit $? "The pip program failed to install InvokeAI."

echo InvokeAI updated to '$INVOKE_AI_VERSION'

./.venv/bin/python .venv/bin/configure_invokeai.py --root .

_err_exit $? "The configure script failed to run successfully."

Screenshots

configure_invokeai.py --root=.

configure_invokeai.py --root=.

#!/usr/bin/env bash

set -eu

if [ $# -ge 1 ] && [ "${1:0:2}" == "-h" ]; then echo "Usage: update.sh " echo "Updates InvokeAI to use the indicated version of the code base." echo "Find the version or branch for the release you want, and pass it as the argument." echo "For example: update.sh v2.2.5 for release 2.2.5." echo " update.sh main for the current development version." echo "" echo "If no argument provided then will install the version tagged with 'latest', equivalent to" echo "update.sh latest" exit -1 fi

INVOKE_AI_VERSION=${1:-latest}

INVOKE_AI_SRC="https://github.com/invoke-ai/InvokeAI/archive/$INVOKE_AI_VERSION.zip" INVOKE_AI_DEP=https://raw.githubusercontent.com/invoke-ai/InvokeAI/$INVOKE_AI_VERSION/environments-and-requirements/requirements-base.txt

ensure we're in the correct folder in case user's CWD is somewhere else

scriptdir=$(dirname "$0") cd "$scriptdir"

function _err_exit { if test "$1" -ne 0 then echo "Something went wrong while installing InvokeAI and/or its requirements." echo "Update cannot continue. Please report this error to https://github.com/invoke-ai/InvokeAI/issues" echo -e "Error code $1; Error caught was '$2'" read -p "Press any key to exit..." exit fi }

if ! curl -I "$INVOKE_AI_DEP" -fs >/dev/null; then echo '$INVOKE_AI_VERSION' is not a known branch name or tag. Please check the version and try again. exit fi

echo This script will update InvokeAI and all its dependencies to version '$INVOKE_AI_VERSION'. echo If you do not want to do this, press control-C now! read -p "Press any key to continue, or CTRL-C to exit..."

curl -L "$INVOKE_AI_DEP" > environments-and-requirements/requirements-base.txt

. .venv/bin/activate

./.venv/bin/python -mpip install -r requirements.txt _err_exit $? "The pip program failed to install InvokeAI's requirements."

./.venv/bin/python -mpip install $INVOKE_AI_SRC _err_exit $? "The pip program failed to install InvokeAI."

echo InvokeAI updated to '$INVOKE_AI_VERSION'

./.venv/bin/python .venv/bin/configure_invokeai.py --root .

_err_exit $? "The configure script failed to run successfully."

Additional context

listed

Contact Details

[email protected]

prendell avatar Dec 31 '22 05:12 prendell

Looks like you opened the shell script in a text editor and pasted it here instead of running it in the terminal. To run a shell script, make sure you're in the right directory in Terminal.app, and then ./install.sh (the name of the script preceeded by a dot and slash).

gogurtenjoyer avatar Dec 31 '22 06:12 gogurtenjoyer

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 13 '23 06:03 github-actions[bot]