Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleUsing Pegasus from LSST environment.

This is an issue if the end goal is to run Pegasus in an activated LSST Stack environment. Setting the LSST environment will override the seach search locations and subsequently importing Pegasus will not work.  To fix this issue it is necessary to re-link the correct Pegasus library paths back into the environment without accidentally short-cutting LSST environment 's`PATH` and `PYTHONPATH` values. Do the following if Pegasus is intended to be used from the LSST environment:

Code Block
languagebash
sudo mkdir -p /usr/share/pegasus/binlib64/python2.7/site-packages
sudo ln -s /usr/bin/pegasus*/lib64/python2.7/site-packages/Pegasus /usr/share/pegasus/bin/lib64/python2.7/site-packages/

and add the paths to environment:

Code Block
languagebash
export PEGASUS_HOMEPYTHONPATH=/usr/share/pegasus
export PATH=/usr/bin:$PATH
export PYTHONPATH=/usr/lib64/python2.7/site-packages/:$PYTHONPATH

In the AMIs provided the paths are linked at log-in time exported in `~/.bashrc`

Using the prepared AMI

...