Fresh install of lsst_stack.

Running sdss demo and I get this error:

(lsst-scipipe-4d7b902) MacBook-Pro-79:lsst_dm_stack_demo-19.0.0 blum$./bin/demo.sh Traceback (most recent call last): File “/Users/blum/lsst_stack/stack/miniconda3-4.7.10-4d7b902/DarwinX86/pipe_tasks/19.0.0+2/bin/processCcd.py”, line 23, in <module> from lsst.pipe.tasks.processCcd import ProcessCcdTask File “/Users/blum/lsst_stack/stack/miniconda3-4.7.10-4d7b902/DarwinX86/pipe_tasks/19.0.0+2/python/lsst/pipe/tasks/processCcd.py”, line 22, in <module> from lsst.ip.isr import IsrTask File “/Users/blum/lsst_stack/stack/miniconda3-4.7.10-4d7b902/DarwinX86/ip_isr/19.0.0/python/lsst/ip/isr/init.py”, line 27, in <module> from .isrFunctions import * File “/Users/blum/lsst_stack/stack/miniconda3-4.7.10-4d7b902/DarwinX86/ip_isr/19.0.0/python/lsst/ip/isr/isrFunctions.py”, line 23, in <module> import numpy ModuleNotFoundError: No module named ‘numpy’ Then (lsst-scipipe-4d7b902) MacBook-Pro-79:lsst_dm_stack_demo-19.0.0 blum$ conda install numpy

Solving environment: done

# All requested packages already installed.

Did you have the LSST conda environment activated when you ran shebangtron? What’s the first line of /Users/blum/lsst_stack/stack/miniconda3-4.7.10-4d7b902/DarwinX86/pipe_tasks/19.0.0+2/bin/processCcd.py ?

#!/Users/blum/lsst_stack/python/miniconda3-4.7.10/bin/python

#!/Users/blum/lsst_stack/python/miniconda3-4.7.10/bin/python

I believe I did have LSST miniconda active, yes.

I did this before shebangtron: source loadLSST.bash # for bash

That’s the LSST-installed miniconda, but not the one from the scipipe_conda_env environment, which should be something like /Users/blum/lsst_stack/python/miniconda3-4.7.10/envs/lsst-scipipe-4d7b902/bin/python

But if you followed these directions:

source loadLSST.bash
eups distrib install -t v19_0_0 lsst_distrib
curl -sSL https://raw.githubusercontent.com/lsst/shebangtron/master/shebangtron | python


I’m not sure how things could have gone wrong.

What is the output of this?

source loadLSST.bash
command -v python


/Users/blum/lsst_stack/python/miniconda3-4.7.10/bin/python

That’s interesting. How about the output of echo $PATH; echo$LSST_CONDA_ENV_NAME?

(base) MacBook-Pro-79:lsst_stack blum$echo$PATH

and
lsst-scipipe-4d7b902

Ah, something has gotten confused here, and the pair of minicondas at the beginning of the path is another indication of this. You’ll need to start in a fresh shell. The first entries in your PATH after source loadLSST.bash should be /Users/blum/lsst_stack/eups/2.1.5/bin:/Users/blum/lsst_stack/python/miniconda3-4.7.10/envs/lsst-scipipe-4d7b902/bin:/Users/blum/lsst_stack/python/miniconda3-4.7.10/bin

I guess it might be good to look at the contents of your loadLSST.bash as well.

I’m also wondering if /opt/anaconda3/condabin could be part of the problem, although it shouldn’t be.

In a fresh shell, after source loadLSST.bash the second and third paths are reversed from what you write above.

Ah! I think I may have found the problem (which would be in newinstall.sh). I’ll try to reproduce and then file a bug.

Nope, that wasn’t it, things look fine in my brand new (but not macOS) installation. I will need the output of cat loadLSST.bash

# environment

export PATH="/Users/blum/lsst_stack/python/miniconda3-4.7.10/bin:${PATH}" export LSST_CONDA_ENV_NAME=${LSST_CONDA_ENV_NAME:-lsst-scipipe-4d7b902}

# shellcheck disable=SC1091

source activate “$LSST_CONDA_ENV_NAME” LSST_HOME="$( cd “$( dirname “${BASH_SOURCE[0]}” )” && pwd )"

# Bootstrap EUPS

EUPS_DIR="${LSST_HOME}/eups/2.1.5" source “${EUPS_DIR}/bin/setups.sh”

export -f setup

export -f unsetup

export EUPS_PKGROOT=${EUPS_PKGROOT:-https://eups.lsst.codes/stack/osx/10.9/clang-1000.10.44.4/miniconda3-4.7.10-4d7b902|https://eups.lsst.codes/stack/src} I did a sudo \rm -r lsst_stack and reinstalled. The reversal of the two paths noted above was corrected, but the result of running the demo script was still the same. Seems numpy must be in the wrong place. (lsst-scipipe-4d7b902) MacBook-Pro-79:lsst_dm_stack_demo-19.0.0 blum$ conda list |grep numpy
numpy 1.16.2 py37hacdab7b_0
numpy-base 1.16.2 py37h6575580_0

(lsst-scipipe-4d7b902) MacBook-Pro-79:lsst_dm_stack_demo-19.0.0 blum\$ ./bin/demo.sh
Traceback (most recent call last):