Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

CONDA_ENV_PATH #9

Closed
arogozhnikov opened this issue Jul 20, 2016 · 7 comments
Closed

CONDA_ENV_PATH #9

arogozhnikov opened this issue Jul 20, 2016 · 7 comments

Comments

@arogozhnikov
Copy link

Hi Daniela,

as you probably know the CONDA_ENV_PATH may not be set by conda in some cases.

See e.g. fix by @ndawe in rootpy to overcome this: https://github.com/rootpy/rootpy/pull/696/files

It's not completely reproducible, since on travis my code is ok, but when I do the same during docker building in ubuntu:14.04, I don't have this variable:

/root/miniconda/envs/rep_py2/etc/conda/activate.d/activateROOT.sh: line 3: /bin/thisroot.sh: No such file or directory

Moreover, it's hard to guess from conda repository whether they plan to support it or not (e.g. ENV_BIN_DIR is not available now, maybe the will delete this).

So, my hackaround is:

source $(which thisroot.sh)

Maybe you find it ok to use in activateROOT.sh

@remenska
Copy link
Collaborator

remenska commented Jul 22, 2016

Hi Alex,

Good point, I noticed that lately too, with Conda. But I wasn't really clear which environment variable is suitable for this, they keep changing/removing them.

Thanks for the idea. Will make the changes (or if you want, feel free to make a pull request?)
May take a while to rebuild the binaries though.

@arogozhnikov
Copy link
Author

arogozhnikov commented Jul 23, 2016

Hi again Daniela,

I see you already updated everything (thank you very much!).
As I'm testing it now, it seems that root 5* + python 3.4 on linux does not have label 'main', but only 'dev'.

Could you fix this please?

@arogozhnikov
Copy link
Author

Tests pass now - thanks, Daniela! You're amazing :)

@remenska
Copy link
Collaborator

Hi Alex,
Are you sure things are good enough?

$ source activate testenv
prepending /home/daniela/anaconda/envs/testenv/bin to PATH
bash: /bin/thisroot.sh: No such file or directory
Activate: ROOT has been sourced. Environment settings are ready. 
ROOTSYS=/home/daniela/anaconda/envs/testenv

I am waiting for the CI to rebuild the binaries since I forgot to comment out the
source ${CONDA_ENV_PATH}/bin/thisroot.sh part, but there are some problems at the moment with our Docker container used for building them. That's why I didn't ping you yet.

@arogozhnikov
Copy link
Author

No, I'm still keeping that hack with manually setting env path, so it works...

Please ping when it's ready for testing.

@remenska
Copy link
Collaborator

remenska commented Aug 13, 2016

Ping, new binaries are ready, the Travis tests pass without the workaround.

@arogozhnikov
Copy link
Author

Ping, new binaries are ready, the Travis tests pass without the workaround.

Thanks! I've tested and it works without hacks for me too.

egpbos added a commit that referenced this issue May 9, 2018
Updated for newer Conda environment variable name + zsh fix. Related to #9 and #34.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants