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

Mac OS Can't install #10

Open
jyarbro1 opened this issue Apr 19, 2024 · 5 comments
Open

Mac OS Can't install #10

jyarbro1 opened this issue Apr 19, 2024 · 5 comments

Comments

@jyarbro1
Copy link

I'm getting the following error when trying to auto install: /Library/Application Support/Anki2/addons21/1915225457/./macos-install.sh: bad interpreter: /bin/bash^M: no such file or directory

I've also tried manually installing and didn't seem to have any errors but don't see a way to input API key.

Know how I can fix this?

@RosettaTechnologies
Copy link
Owner

RosettaTechnologies commented Apr 19, 2024 via email

@jyarbro1
Copy link
Author

I can't get to the input API key menu because AnkiBrain isn't installing correctly. Only install and switch user are displayed under "AnkiBrain"

@jyarbro1
Copy link
Author

I figured out the error. Had to remove the carriage return character from the shebang line of the script. Fixed it by using the command dos2unix macos-install.sh

@eshahrabani
Copy link
Collaborator

eshahrabani commented Apr 19, 2024 via email

@1001ruchka
Copy link

1001ruchka commented May 10, 2024

Another solution:
sed -i -e 's/\r$/\n/' macos-install.sh
I also needed to replace a line (in macos-install.sh) for a complete installation:
pip install -r ./linux_requirements.txt
to
pip install -r ./linux_requirements.txt --upgrade pip

Fixed file:
macos-install.sh.zip

Just run command "open ." this will open current directory in Finder and replace the "macos-install.sh" file with the unpacked one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants