Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Syntax error in invoke.sh. Failed to run on macOS #1717

Closed
1 task done
TitusPosiadly opened this issue Dec 2, 2022 · 0 comments · Fixed by #1727
Closed
1 task done

[bug]: Syntax error in invoke.sh. Failed to run on macOS #1717

TitusPosiadly opened this issue Dec 2, 2022 · 0 comments · Fixed by #1727
Labels
bug Something isn't working

Comments

@TitusPosiadly
Copy link

TitusPosiadly commented Dec 2, 2022

Is there an existing issue for this?

  • I have searched the existing issues

OS

macOS

GPU

cpu

VRAM

No response

What happened?

First time installing with the source installer. Not sure if it was 2.2.1 or 2.2.2.
Installed with mostly recommended settings. Installation was successful.
When running ./invoke.sh I get the following error:

./invoke.sh: line 14: syntax error near unexpected token `then'
./invoke.sh: line 14: `if [ "$(uname -s)" == "Darwin" ]; then

Screenshots

No response

Additional context

I had a look at the invoke.sh.in file and noticed some extra whitespaces. I'm not familiar with command line things but after fixing the formatting everything seems to work.

Changed from this (line 14-17):

if [ "$(uname -s)" == "Darwin" ]; then
    export PYTORCH_ENABLE_MPS_FALLBACK=1
fi


To this:

if [ "$(uname -s)" == "Darwin" ]; then
    export PYTORCH_ENABLE_MPS_FALLBACK=1
fi

Also seems to be a special character instead of a normal whitespace (screenshot from this editor):
grafik

Contact Details

No response

@TitusPosiadly TitusPosiadly added the bug Something isn't working label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant