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
crashing anaconda envs on activation #662
Comments
What do you mean by "crashes"? Freezes? Does Ctrl-C (SIGTERM) or Ctrl-D (EOF) bring it back? This is probably an issue with Anaconda and/or your shell (what shell are you using?); |
I could not reproduce the issue. It seems that one of astroconda's dependencies install custom profile script. Though it just worked fine for me at least. % pyenv sh-activate miniconda3-4.0.5/envs/astroconda
unset PYENV_VIRTUAL_ENV;
unset VIRTUAL_ENV;
if [ -n "${_OLD_VIRTUAL_PATH}" ]; then
export PATH="${_OLD_VIRTUAL_PATH}";
unset _OLD_VIRTUAL_PATH;
fi;
if [ -n "${_OLD_VIRTUAL_PYTHONHOME}" ]; then
export PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME}";
unset _OLD_VIRTUAL_PYTHONHOME;
fi;
if [ -n "${_OLD_VIRTUAL_PS1}" ]; then
export PS1="${_OLD_VIRTUAL_PS1}";
unset _OLD_VIRTUAL_PS1;
fi;
if declare -f deactivate 1>/dev/null 2>&1; then
unset -f deactivate;
fi;
export PYENV_VERSION="miniconda3-4.0.5/envs/astroconda";
export PYENV_ACTIVATE_SHELL=1;
export PYENV_VIRTUAL_ENV="/home/yyuu/.pyenv/versions/miniconda3-4.0.5/envs/astroconda";
export VIRTUAL_ENV="/home/yyuu/.pyenv/versions/miniconda3-4.0.5/envs/astroconda";
export CONDA_DEFAULT_ENV="astroconda";
. "/home/yyuu/.pyenv/versions/miniconda3-4.0.5/envs/astroconda/etc/conda/activate.d/webbpsf-data.sh"; |
Hi, I have exactly the same issue. I ran exactly these commands
If i cd into #!/usr/bin/env bash
set -e
[ -n "$PYENV_DEBUG" ] && set -x
program="${0##*/}"
if [[ "$program" = "python"* ]]; then
for arg; do
case "$arg" in
-c* | -- ) break ;;
*/* )
if [ -f "$arg" ]; then
export PYENV_FILE_ARG="$arg"
break
fi
;;
esac
done
fi
export PYENV_ROOT="/usr/local/var/pyenv"
exec "/usr/local/Cellar/pyenv/1.0.6/libexec/pyenv" exec "$program" "$@" I will happily provide more info |
@pocin the As a workaround, I've prepared support for Anaconda style activation in pyenv-virtualenv. I'd recommend Anaconda users to install pyenv-virtualenv if they'd like to use pyenv style versioning with conda's environments. Please give it a try. |
@yyuu oh thanks! I'll give it a shot :) I had a feeling it was not a bug, but I just could not find any mention of pyenv-virtualenv in the docs. Perhaps a small note/link could be added? |
Hi, I am trying to install astroconda for work. I manage my python versions with pyenv. I've installed a specific installation of anaconda-4.0.0 with pyenv so I can set up an astroconda env. When I follow the instructions on the astroconda RTD page and then try to activate the env with
it crashes the terminal window completely. At first I thought this might be an astroconda issue, but now I am not sure. I tried making a throwaway env as suggested to my issue on the astroconda repo. When I do this the terminal still crashes. I think the modified activate script in .shims might be causing the problem?
Any help would be great, thanks. Below is a screen shot of the terminal output right before it dies.
Cheers,
James
The text was updated successfully, but these errors were encountered: