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

"source activate rmg_env" stopped working -- on new macOS? #370

Closed
PWstmrlnd opened this issue Dec 16, 2019 · 4 comments
Closed

"source activate rmg_env" stopped working -- on new macOS? #370

PWstmrlnd opened this issue Dec 16, 2019 · 4 comments

Comments

@PWstmrlnd
Copy link

When I run "source activate rmg_env" on my MacBook Pro (2019) running macOS 10.15.2 Catalina, I'm getting:
/Users/mcninch/anaconda2/envs/rmg_env/etc/conda/activate.d/keras_activate.sh:2: = not found

My rmg ran fine before the OS update. I checked the entire path and it's fine, giving the shell script:

**#!/bin/bash

if [ "$(uname)" == "Darwin" ]
then
# for Mac OSX
export KERAS_BACKEND=tensorflow
elif [ "$(uname)" == "Linux" ]
then
# for Linux
export KERAS_BACKEND=theano
fi**

Ideas???

@alongd
Copy link
Member

alongd commented Dec 16, 2019

Try conda activate rmg_env instead

@PWstmrlnd
Copy link
Author

No, still got:
/Users/mcninch/anaconda2/envs/rmg_env/etc/conda/activate.d/keras_activate.sh:2: = not found

@mliu49
Copy link
Contributor

mliu49 commented Dec 16, 2019

This was also reported in keras-team/keras#9029 in January of 2018, with no responses. According to this StackOverflow comment, this script is part of how conda-forge packages keras. A similar error is reported in conda-forge/toolchain-feedstock#49, which points towards this being an issue with zsh, which became the default shell in MacOS Catalina.

If you prefer using zsh, there are some comments in the conda-forge issue about how to fix this error. Otherwise, I would suggest setting your default shell back to bash: How to change default shell in MacOS.

@PWstmrlnd
Copy link
Author

Yes! I reset to bash, and now the calculation is chugging along. Thank you.

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

3 participants