# Getting started tutorial part 2 (and 4): qgraph problems

**URL:** <https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699>\
**Category:** Support\
**Created:** [June 8, 2023, 11:29pm UTC](https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699 "2023-06-08T23:29:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eborowski](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@eborowski](https://www.rubin.community/u/eborowski)\
**Post date:** [June 8, 2023, 11:29pm UTC](https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699/1 "2023-06-08T23:29:54Z")

</div>

Hello,

I have been working my way through the getting started tutorial. I had some trouble with setting up the Butler data repository in part 1, which I eventually passed using the helpful instructions [here](http://www.rubin.community/t/problem-constructing-butler/7055/9).

For step 2, I was initially using the tutorial located at [Getting started tutorial part 2: calibrating single frames with Pipeline Tasks — LSST Science Pipelines](https://pipelines.lsst.io/getting-started/singleframe.html) which I couldn’t get through. I switched to the [/v/weekly](https://pipelines.lsst.io/v/weekly/getting-started/singleframe.html) version of the tutorial, but was still unable to pass the pipetask run step, as I don’t appear to have a DRP-RC2\_subset.yaml file. In that folder ($DRP\_PIPE\_DIR/pipelines/HSC/) I located DRP-RC2.yaml, so decided to try using this instead. This seemed to work as I was able to run the pipetask run command and then display some images in DS9 (following the tutorial part 3), but I couldn’t get pipetask qgraph to work with the same tweak. It appears this might be causing the first step of tutorial part 4 to fail, as I am receiving an error message “RuntimeError: QuantumGraph is empty.”

Now I’m stumped. Could anyone offer some advice on how to fix this issue?

---

<div class="post-metadata">

**Author:** ![ameisner](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ameisner/32/2392_2.png) [@ameisner](https://www.rubin.community/u/ameisner)\
**Post date:** [June 9, 2023, 7:12am UTC](https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699/2 "2023-06-09T07:12:35Z")

</div>

I am not this tutorial’s author — hopefully they can jump in with a definitive answer. But your `RuntimeError: QuantumGraph is empty.` message reminds me of something I encountered in early 2022 when running the getting started tutorial myself. In case it’s of interest, here’s the link to the relevant thread, starting with the comment that has this same error message:

> [@Getting started tutorial part 2: No good pixels in image array](http://www.rubin.community/t/getting-started-tutorial-part-2-no-good-pixels-in-image-array/6328/5):
>
> Using simpleSingleFrame, I was able to successfully run all of the single-frame processing in Part 2 of the Gen3 tutorial. I’m not convinced that this is related to simpleSingleFrame versus singleFrame, but when I try to run the first command from Part 4 of the tutorial: pipetask run -b $RC2\_SUBSET\_DIR/SMALL\_HSC/butler.yaml -p $RC2\_SUBSET\_DIR/pipelines/DRP.yaml#fgcm -i u/$USER/single\_frame -o u/$USER/fgcm –register-dataset-types &\> fgcm.log & I get warnings that say: lsst.pipe.bas…

---

<div class="post-metadata">

**Author:** ![eborowski](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@eborowski](https://www.rubin.community/u/eborowski)\
**Post date:** [June 9, 2023, 10:15pm UTC](https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699/3 "2023-06-09T22:15:40Z")

</div>

Thanks for your response, Aaron. It helped me make some progress.

Reading through that thread, I realized that I had a version mismatch. The rc2\_subset I initially cloned from github was on the main branch, which has no pipelines folder. I started over with the v24\_0\_0 of the tutorial, got the correct rc2\_subset, and repeated parts 1, 2, and 3. I attempted part 4 and failed on the FGCM step. When running

```auto
pipetask run -b $RC2_SUBSET_DIR/SMALL_HSC/butler.yaml \
             -p $RC2_SUBSET_DIR/pipelines/DRP.yaml#fgcm \
             -i u/$USER/single_frame \
             -o u/$USER/fgcm \
             --register-dataset-types

```

I get a bit further than before (no quantumgraph is empty error) but still run into a problem. One quanta executes successfully, but then I get `RuntimeError: FATAL: All observations in i band have been cut with TOO_FEW_STARS`

Attached is the full output of that step.  
[fgcm.txt](https://www.rubin.community/uploads/short-url/dH6zqlgORA4ROVdh6ckHUwCHya4.txt) (12.6 KB)

---

<div class="post-metadata">

**Author:** ![dtaranu](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/dtaranu/32/657_2.png) [@dtaranu](https://www.rubin.community/u/dtaranu)\
**Post date:** [June 12, 2023, 12:54pm UTC](https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699/4 "2023-06-12T12:54:30Z")

</div>

It seems that you found the solution to your problem, which is that you must use the same version for rc2\_subset as for the rest of the pipelines. Unfortunately, older versions of the docs don’t specify this, whereas newer versions don’t seem to specify the correct version - we’re looking into this.

As for the FGCM failure, @erykoff might have an idea whether that failure was expected in v24 or not. Regardless, though, I suggest trying to go through the tutorial with a more recent weekly.

---

<div class="post-metadata">

**Author:** ![ameisner](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ameisner/32/2392_2.png) [@ameisner](https://www.rubin.community/u/ameisner)\
**Post date:** [June 26, 2023, 7:06am UTC](https://www.rubin.community/t/getting-started-tutorial-part-2-and-4-qgraph-problems/7699/5 "2023-06-26T07:06:33Z")

</div>

@jeffcarlin any advice regarding this topic? Thanks…
