# Issue installing lsst\_apps and \_distrib, OSX

**URL:** <https://www.rubin.community/t/issue-installing-lsst-apps-and-distrib-osx/3940>\
**Category:** Support\
**Created:** [November 21, 2019, 5:55am UTC](https://www.rubin.community/t/issue-installing-lsst-apps-and-distrib-osx/3940 "2019-11-21T05:55:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fraserw](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/fraserw/32/877_2.png) [@fraserw](https://www.rubin.community/u/fraserw)\
**Post date:** [November 21, 2019, 5:55am UTC](https://www.rubin.community/t/issue-installing-lsst-apps-and-distrib-osx/3940/1 "2019-11-21T05:55:16Z")

</div>

I am hoping to run through the pipeline tutorial, but am unable to install the pipeline, following the installation steps.

I have provided a complete terminal session copy to show what happens when I attempt to install using miniconda as recommended, but the essential part is, that is seems eups as installed is broken. I get the following traceback during the source loadLSST.bash.

Traceback (most recent call last):  
File “/Users/fraserw/lsst\_stack/eups/2.1.5/bin/eups\_setup”, line 42, in   
import eups.setupcmd  
ModuleNotFoundError: No module named ‘eups.setupcmd’  
-bash: export: setup: not a function  
-bash: export: unsetup: not a function

Any ideas on how to fix this?

Details:  
OSX 10.14  
Anaconda installed  
cmake from homebrew  
Note - PYTHONPATH is set to ‘’ before installation is attempted

Terminal output:  
lsst\_stack : fraserw $ export PYTHON\_PATH=’’  
lsst\_stack : fraserw $ !bash  
bash newinstall.sh -ct

# LSST Software Stack Builder

############################## 42.2%!!! This script differs from the official version on the distribution server.  
If this is not intentional, get the current version from here:  
[https://raw.githubusercontent.com/lsst/lsst/master/scripts/newinstall.sh](https://raw.githubusercontent.com/lsst/lsst/master/scripts/newinstall.sh)  
######################################################################## 100.0%  
(23) Failed writing body  
Detected git version 2.21.0 (Apple Git-122). OK.

LSST stack requires Python \>= 3.6; you seem to have Python 2.7.10 on your path  
(/usr/bin/python).

In addition to Python \>= 3.6, some LSST packages depend on recent versions of  
numpy, matplotlib, and scipy. If you do not have all of these, the  
installation may fail. Using the Miniconda Python distribution will ensure  
all these are set up.

Would you like us to install the Miniconda Python distribution (if unsure, say  
yes)?yes  
::: Deploying Miniconda3-4.5.12-MacOSX-x86\_64.sh  
######################################################################## 100.0%  
PREFIX=/Users/fraserw/lsst\_stack/python/miniconda3-4.5.12  
installing: python-3.7.1-haf84260\_7 …  
Python 3.7.1  
installing: ca-certificates-2018.03.07-0 …  
installing: conda-env-2.6.0-1 …  
installing: libcxxabi-4.0.1-hcfea43d\_1 …  
installing: xz-5.2.4-h1de35cc\_4 …  
installing: yaml-0.1.7-hc338f04\_2 …  
installing: zlib-1.2.11-h1de35cc\_3 …  
installing: libcxx-4.0.1-hcfea43d\_1 …  
installing: openssl-1.1.1a-h1de35cc\_0 …  
installing: tk-8.6.8-ha441bb4\_0 …  
installing: libffi-3.2.1-h475c297\_4 …  
installing: ncurses-6.1-h0a44026\_1 …  
installing: libedit-3.1.20170329-hb402a30\_2 …  
installing: readline-7.0-h1de35cc\_5 …  
installing: sqlite-3.26.0-ha441bb4\_0 …  
installing: asn1crypto-0.24.0-py37\_0 …  
installing: certifi-2018.11.29-py37\_0 …  
installing: chardet-3.0.4-py37\_1 …  
installing: idna-2.8-py37\_0 …  
installing: pycosat-0.6.3-py37h1de35cc\_0 …  
installing: pycparser-2.19-py37\_0 …  
installing: pysocks-1.6.8-py37\_0 …  
installing: python.app-2-py37\_9 …  
installing: ruamel\_yaml-0.15.46-py37h1de35cc\_0 …  
installing: six-1.12.0-py37\_0 …  
installing: cffi-1.11.5-py37h6174b99\_1 …  
installing: setuptools-40.6.3-py37\_0 …  
installing: cryptography-2.4.2-py37ha12b0ac\_0 …  
installing: wheel-0.32.3-py37\_0 …  
installing: pip-18.1-py37\_0 …  
installing: pyopenssl-18.0.0-py37\_0 …  
installing: urllib3-1.24.1-py37\_0 …  
installing: requests-2.21.0-py37\_0 …  
installing: conda-4.5.12-py37\_0 …  
installation finished.  
WARNING:  
You currently have a PYTHONPATH environment variable set. This may cause  
unexpected behavior when running the Python interpreter in Miniconda3.  
For best results, please verify that your PYTHONPATH only points to  
directories of packages that are compatible with the Python interpreter  
in Miniconda3: /Users/fraserw/lsst\_stack/python/miniconda3-4.5.12  
######################################################################## 100.0%  
Solving environment: done

==\> WARNING: A newer version of conda exists. \<==  
current version: 4.5.12  
latest version: 4.8.0rc0

Please update conda by running

```
$ conda update -n base -c defaults conda

```

Downloading and Extracting Packages  
pytest-doctestplus-0 | 23 KB | ##################################### | 100%  
scikit-learn-0.20.3 | 5.2 MB | ##################################### | 100%  
libpng-1.6.36 | 296 KB | ##################################### | 100%  
mkl\_random-1.0.2 | 358 KB | ##################################### | 100%  
lzo-2.10 | 190 KB | ##################################### | 100%  
pytest-openfiles-0.3 | 11 KB | ##################################### | 100%  
intel-openmp-2019.1 | 1.1 MB | ##################################### | 100%  
python-3.7.2 | 21.6 MB | ##################################### | 100%  
future-0.17.1 | 700 KB | ##################################### | 100%  
bzip2-1.0.6 | 149 KB | ##################################### | 100%  
wrapt-1.11.1 | 42 KB | ##################################### | 100%  
pytables-3.5.1 | 1.4 MB | ##################################### | 100%  
scipy-1.2.1 | 15.6 MB | ##################################### | 100%  
h5py-2.9.0 | 942 KB | ##################################### | 100%  
numexpr-2.6.9 | 130 KB | ##################################### | 100%  
pip-19.0.3 | 1.8 MB | ##################################### | 100%  
bottleneck-1.2.1 | 113 KB | ##################################### | 100%  
cython-0.29.6 | 2.0 MB | ##################################### | 100%  
pytest-astropy-0.5.0 | 6 KB | ##################################### | 100%  
ca-certificates-2019 | 126 KB | ##################################### | 100%  
pluggy-0.9.0 | 30 KB | ##################################### | 100%  
pytz-2018.9 | 268 KB | ##################################### | 100%  
mkl\_fft-1.0.10 | 153 KB | ##################################### | 100%  
pyyaml-5.1 | 169 KB | ##################################### | 100%  
pytest-arraydiff-0.3 | 15 KB | ##################################### | 100%  
hdf5-1.10.4 | 4.5 MB | ##################################### | 100%  
setuptools-40.8.0 | 643 KB | ##################################### | 100%  
kiwisolver-1.0.1 | 56 KB | ##################################### | 100%  
blosc-1.15.0 | 460 KB | ##################################### | 100%  
astropy-3.1.2 | 6.8 MB | ##################################### | 100%  
python-dateutil-2.8. | 281 KB | ##################################### | 100%  
numpy-1.16.2 | 49 KB | ##################################### | 100%  
pytest-4.3.1 | 352 KB | ##################################### | 100%  
cycler-0.10.0 | 14 KB | ##################################### | 100%  
mkl-2019.1 | 154.4 MB | ##################################### | 100%  
libgfortran-3.0.1 | 495 KB | ##################################### | 100%  
more-itertools-6.0.0 | 89 KB | ##################################### | 100%  
matplotlib-3.0.3 | 6.6 MB | ##################################### | 100%  
certifi-2019.3.9 | 155 KB | ##################################### | 100%  
attrs-19.1.0 | 35 KB | ##################################### | 100%  
tornado-6.0.1 | 640 KB | ##################################### | 100%  
atomicwrites-1.3.0 | 9 KB | ##################################### | 100%  
freetype-2.9.1 | 864 KB | ##################################### | 100%  
sqlite-3.27.2 | 2.3 MB | ##################################### | 100%  
sqlalchemy-1.3.1 | 1.7 MB | ##################################### | 100%  
pyopenssl-19.0.0 | 82 KB | ##################################### | 100%  
pytest-remotedata-0. | 13 KB | ##################################### | 100%  
libedit-3.1.20181209 | 159 KB | ##################################### | 100%  
numpy-base-1.16.2 | 4.2 MB | ##################################### | 100%  
pandas-0.24.2 | 9.9 MB | ##################################### | 100%  
py-1.8.0 | 140 KB | ##################################### | 100%  
cffi-1.12.2 | 213 KB | ##################################### | 100%  
wheel-0.33.1 | 39 KB | ##################################### | 100%  
cryptography-2.6.1 | 583 KB | ##################################### | 100%  
snappy-1.1.7 | 40 KB | ##################################### | 100%  
blas-1.0 | 5 KB | ##################################### | 100%  
openssl-1.1.1b | 3.4 MB | ##################################### | 100%  
pyparsing-2.3.1 | 105 KB | ##################################### | 100%  
psutil-5.6.1 | 328 KB | ##################################### | 100%  
Preparing transaction: done  
Verifying transaction: done  
Executing transaction: done  
Collecting deprecated==1.2.5 (from -r /var/folders/p6/hw3mrjd54sx5txgvtwbvtvx00000gr/T/condaenv.v68bqfz3.requirements.txt (line 1))  
Using cached [https://files.pythonhosted.org/packages/9f/7a/003fa432f1e45625626549726c2fbb7a29baa764e9d1fdb2323a5d779f8a/Deprecated-1.2.5-py2.py3-none-any.whl](https://files.pythonhosted.org/packages/9f/7a/003fa432f1e45625626549726c2fbb7a29baa764e9d1fdb2323a5d779f8a/Deprecated-1.2.5-py2.py3-none-any.whl)  
Requirement already satisfied: wrapt\<2,\>=1 in /Users/fraserw/lsst\_stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/lib/python3.7/site-packages (from deprecated==1.2.5-\>-r /var/folders/p6/hw3mrjd54sx5txgvtwbvtvx00000gr/T/condaenv.v68bqfz3.requirements.txt (line 1)) (1.11.1)  
Installing collected packages: deprecated  
Successfully installed deprecated-1.2.5

# 

# To activate this environment, use

# 

# $ conda activate lsst-scipipe-1172c30

# 

# To deactivate an active environment, use

# 

# $ conda deactivate

name: lsst-scipipe-1172c30  
channels:

- [http://ssb.stsci.edu/astroconda](http://ssb.stsci.edu/astroconda)
- [http://conda.lsst.codes/sims](http://conda.lsst.codes/sims)
- [http://conda.lsst.codes/stack/0.13.0](http://conda.lsst.codes/stack/0.13.0)
- [https://conda.anaconda.org/NLeSC](https://conda.anaconda.org/NLeSC)
- defaults
- [http://repo.continuum.io/pkgs/free](http://repo.continuum.io/pkgs/free)  
dependencies:
- asn1crypto=0.24.0=py37\_0
- astropy=3.1.2=py37h1de35cc\_0
- atomicwrites=1.3.0=py\_0
- attrs=19.1.0=py\_0
- blas=1.0=mkl
- blosc=1.15.0=hd9629dc\_0
- bottleneck=1.2.1=py37h1d22016\_1
- bzip2=1.0.6=h1de35cc\_5
- ca-certificates=2019.1.23=0
- certifi=2019.3.9=py37\_0
- cffi=1.12.2=py37hb5b8e2f\_1
- chardet=3.0.4=py37\_1
- cryptography=2.6.1=py37ha12b0ac\_0
- cycler=0.10.0=py37\_0
- cython=0.29.6=py37h0a44026\_0
- freetype=2.9.1=hb4e5f40\_0
- future=0.17.1=py37\_0
- h5py=2.9.0=py37h3134771\_0
- hdf5=1.10.4=hfa1e0ec\_0
- idna=2.8=py37\_0
- intel-openmp=2019.1=144
- kiwisolver=1.0.1=py37h0a44026\_0
- libcxx=4.0.1=hcfea43d\_1
- libcxxabi=4.0.1=hcfea43d\_1
- libedit=3.1.20181209=hb402a30\_0
- libffi=3.2.1=h475c297\_4
- libgfortran=3.0.1=h93005f0\_2
- libpng=1.6.36=ha441bb4\_0
- lzo=2.10=h362108e\_2
- matplotlib=3.0.3=py37h54f8f79\_0
- mkl=2019.1=144
- mkl\_fft=1.0.10=py37h5e564d8\_0
- mkl\_random=1.0.2=py37h27c97d8\_0
- more-itertools=6.0.0=py37\_0
- ncurses=6.1=h0a44026\_1
- numexpr=2.6.9=py37h7413580\_0
- numpy=1.16.2=py37hacdab7b\_0
- numpy-base=1.16.2=py37h6575580\_0
- openssl=1.1.1b=h1de35cc\_1
- pandas=0.24.2=py37h0a44026\_0
- pip=19.0.3=py37\_0
- pluggy=0.9.0=py37\_0
- psutil=5.6.1=py37h1de35cc\_0
- py=1.8.0=py37\_0
- pycparser=2.19=py37\_0
- pyopenssl=19.0.0=py37\_0
- pyparsing=2.3.1=py37\_0
- pysocks=1.6.8=py37\_0
- pytables=3.5.1=py37h5bccee9\_0
- pytest=4.3.1=py37\_0
- pytest-arraydiff=0.3=py37h39e3cac\_0
- pytest-astropy=0.5.0=py37\_0
- pytest-doctestplus=0.3.0=py37\_0
- pytest-openfiles=0.3.2=py37\_0
- pytest-remotedata=0.3.1=py37\_0
- python=3.7.2=haf84260\_0
- python-dateutil=2.8.0=py37\_0
- pytz=2018.9=py37\_0
- pyyaml=5.1=py37h1de35cc\_0
- readline=7.0=h1de35cc\_5
- requests=2.21.0=py37\_0
- scikit-learn=0.20.3=py37h27c97d8\_0
- scipy=1.2.1=py37h1410ff5\_0
- setuptools=40.8.0=py37\_0
- six=1.12.0=py37\_0
- snappy=1.1.7=he62c110\_3
- sqlalchemy=1.3.1=py37h1de35cc\_0
- sqlite=3.27.2=ha441bb4\_0
- tk=8.6.8=ha441bb4\_0
- tornado=6.0.1=py37h1de35cc\_0
- urllib3=1.24.1=py37\_0
- wheel=0.33.1=py37\_0
- wrapt=1.11.1=py37h1de35cc\_0
- xz=5.2.4=h1de35cc\_4
- yaml=0.1.7=hc338f04\_2
- zlib=1.2.11=h1de35cc\_3
- pip:
  - deprecated==1.2.5
  - tables==3.5.1
  - trippy==1.1.1  
prefix: /Users/fraserw/lsst\_stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30

Configured EUPS\_PKGROOT:  
Using python at /Users/fraserw/lsst\_stack/python/miniconda3-4.5.12/envs/lsst-scipipe-1172c30/bin/python to install EUPS  
Installing EUPS (2.1.5)… done.  
Creating startup scripts (bash) … done.  
Creating startup scripts (ksh) … done.  
Creating startup scripts (csh) … done.  
Creating startup scripts (zsh) … done.

Bootstrap complete. To continue installing (and to use) the LSST stack type  
one of:

source “/Users/fraserw/lsst\_stack/loadLSST.bash” # for bash  
source “/Users/fraserw/lsst\_stack/loadLSST.csh” # for csh  
source “/Users/fraserw/lsst\_stack/loadLSST.ksh” # for ksh  
source “/Users/fraserw/lsst\_stack/loadLSST.zsh” # for zsh

Individual LSST packages may now be installed with the usual `eups distrib install` command. For example, to install the science pipeline elements  
of the LSST stack, use:

eups distrib install lsst\_apps

Next, read the documentation at:

[https://pipelines.lsst.io](https://pipelines.lsst.io)

and feel free to ask any questions via the LSST Community forum:

[http://www.rubin.community/c/support](http://www.rubin.community/c/support)

```
                                   Thanks!
                                            -- The LSST Software Teams
                                                   http://dm.lsst.org/

```

lsst\_stack : fraserw $ eups distrib install lsst\_app  
-bash: eups: command not found  
lsst\_stack : fraserw $ source  
\_build/ eupsbuild.log loadLSST.csh loadLSST.zsh python/  
eups/ loadLSST.bash loadLSST.ksh newinstall.sh stack/  
lsst\_stack : fraserw $ source loadLSST.bash  
Traceback (most recent call last):  
File “/Users/fraserw/lsst\_stack/eups/2.1.5/bin/eups\_setup”, line 28, in   
import eups.setupcmd  
ModuleNotFoundError: No module named ‘eups.setupcmd’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/Users/fraserw/lsst\_stack/eups/2.1.5/bin/eups\_setup”, line 42, in   
import eups.setupcmd  
ModuleNotFoundError: No module named ‘eups.setupcmd’  
-bash: export: setup: not a function  
-bash: export: unsetup: not a function

---

<div class="post-metadata">

**Author:** ![KSK](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ksk/32/393_2.png) [@KSK](https://www.rubin.community/u/KSK)\
**Post date:** [November 21, 2019, 4:35pm UTC](https://www.rubin.community/t/issue-installing-lsst-apps-and-distrib-osx/3940/2 "2019-11-21T16:35:22Z")

</div>

It seems like your shell may be confused. Try opening a fresh terminal and do:  
`source “/Users/fraserw/lsst_stack/loadLSST.bash”`, assuming you are using bash.

I guess I would be a little surprised if that works, but we use a lot of environment variables, so having a fresh env may help.

---

<div class="post-metadata">

**Author:** ![swinbank](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/swinbank/32/24_2.png) [@swinbank](https://www.rubin.community/u/swinbank)\
**Post date:** [November 21, 2019, 6:28pm UTC](https://www.rubin.community/t/issue-installing-lsst-apps-and-distrib-osx/3940/3 "2019-11-21T18:28:47Z")

</div>

See also [Problem when loading loadLSST.bash](http://www.rubin.community/t/problem-when-loading-loadlsst-bash/2847) — the problem there seems to be related to `$PYTHONPATH`.
