PATH env var missing in followup jobs launched via condor
The overflows plugin fails due to PATH not being in the environment:
2018-10-18 13:07:59,199 plotting WIDE ADC overflows for ASC subsystem
Traceback (most recent call last):
File "/home/lockloss/src/locklost/locklost/analyze.py", line 29, in analyze_event
func(event)
File "/home/lockloss/src/locklost/locklost/plugins/overflows.py", line 70, in find_overflows
figsize=[12, 16],
File "/usr/lib/python2.7/site-packages/gwpy/segments/flag.py", line 1738, in plot
from ..plotter import SegmentPlot
File "/usr/lib/python2.7/site-packages/gwpy/plotter/__init__.py", line 29, in <module>
from .rc import DEFAULT_PARAMS as GWPY_PLOT_PARAMS
File "/usr/lib/python2.7/site-packages/gwpy/plotter/rc.py", line 27, in <module>
from . import tex
File "/usr/lib/python2.7/site-packages/gwpy/plotter/tex.py", line 56, in <module>
HAS_TEX = has_tex()
File "/usr/lib/python2.7/site-packages/gwpy/plotter/tex.py", line 50, in has_tex
which(exe)
File "/usr/lib/python2.7/site-packages/gwpy/utils/shell.py", line 56, in which
for path in os.environ["PATH"].split(os.pathsep):
File "/usr/lib64/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'PATH'
2018-10-18 13:08:01,074 INCOMPLETE ANALYSIS
It is suspected that it could be from our condor_submit job because getenv is set to False. Hopefully it's as simple as that.