Issue with empty QuantumGraph in LSST Science Pipeline tutorial

Hi all,

I am working through the LSST Science Pipeline tutorials and when I try to run pipetask to warp images onto the skymap (specifically the makeWarp task in Getting started tutorial part 5: coadding images), I get the following error:

lsst.pipe.base.graphBuilder WARNING: Dataset type finalVisitSummary is not registered.
py.warnings WARNING: /opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/ctrl_mpexec/g4d64b21cde+c83392c80c/python/lsst/ctrl/mpexec/cli/script/qgraph.py:187: UserWarning: QuantumGraph is empty
  qgraph = f.makeGraph(pipelineObj, args)

lsst.daf.butler.cli.utils ERROR: Caught an exception, details are in traceback:
Traceback (most recent call last):
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/ctrl_mpexec/g4d64b21cde+c83392c80c/python/lsst/ctrl/mpexec/cli/cmd/commands.py", line 130, in run
    qgraph = script.qgraph(pipelineObj=pipeline, **kwargs)
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/ctrl_mpexec/g4d64b21cde+c83392c80c/python/lsst/ctrl/mpexec/cli/script/qgraph.py", line 190, in qgraph
    raise RuntimeError("QuantumGraph is empty.")
RuntimeError: QuantumGraph is empty.

Does anyone have any suggestions about how I can go about fixing this?

It looks like you are looking at the v23 docs and running a v24 version of the pipeline. Could you try running v26 pipelines and v26 docs and making sure you have a matching tag checkout of rc2_subset?

When I try to run the v26 pipeline with the v26 I encounter an error at gbdes in part 4:

lsst.daf.butler.cli.utils ERROR: Caught an exception, details are in traceback:
Traceback (most recent call last):
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/ctrl_mpexec/g4d64b21cde+c83392c80c/python/lsst/ctrl/mpexec/cli/cmd/commands.py", line 129, in run
    pipeline = script.build(**kwargs)
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/ctrl_mpexec/g4d64b21cde+c83392c80c/python/lsst/ctrl/mpexec/cli/script/build.py", line 87, in build
    pipeline = f.makePipeline(args)
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/ctrl_mpexec/g4d64b21cde+c83392c80c/python/lsst/ctrl/mpexec/cmdLineFwk.py", line 505, in makePipeline
    pipeline = Pipeline.from_uri(args.pipeline)
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/pipe_base/g022a05fb0b+81ca336649/python/lsst/pipe/base/pipeline.py", line 335, in from_uri
    pipeline = pipeline.subsetFromLabels(label_specifier)
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/pipe_base/g022a05fb0b+81ca336649/python/lsst/pipe/base/pipeline.py", line 403, in subsetFromLabels
    return Pipeline.fromIR(self._pipelineIR.subset_from_labels(labelSet))
  File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-4.0.5/Linux64/pipe_base/g022a05fb0b+81ca336649/python/lsst/pipe/base/pipelineIR.py", line 829, in subset_from_labels
    raise ValueError(
ValueError: Not all supplied labels (specified or named subsets) are in the pipeline definition, extra labels: {'GbdesAstrometricFitTask'}

Not sure how to resolve this to get to the next part?

Looks like someone used the task class name instead of its label in the pipeline. Please try

-p $DRP_PIPE_DIR/pipelines/HSC/DRP-RC2_subset.yaml#gbdesAstrometricFit

instead of what’s on that doc page.

Yep, that fixed it. And I managed to get through warping the images. Thanks all for your help!