# Butler issue in tutorial notebook 01

**URL:** <https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619>\
**Category:** Support\
**Created:** [December 4, 2024, 9:35pm UTC](https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619 "2024-12-04T21:35:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kklaliotis](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/kklaliotis/32/3116_2.png) [@kklaliotis](https://www.rubin.community/u/kklaliotis)\
**Post date:** [December 4, 2024, 9:35pm UTC](https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619/1 "2024-12-04T21:35:53Z")

</div>

Hi,

I am trying to work through the tutorial notebooks on the Rubin Science Platform and can’t seem to create an instance of the butler. When I try to execute the cell `butler = dafButler.Butler('dp02', collections='2.2i/runs/DP0.2')` , I am getting the following error (this is just the first few lines of the error):  
`--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) File /opt/lsst/software/stack/conda/envs/lsst-scipipe-9.0.0/share/eups/Linux64/daf_butler/g588e17ab67+fac83bd63d/python/lsst/daf/butler/_butler_config.py:138, in ButlerConfig. __init__ (self, other, searchPaths, without_datastore) 137 try: --> 138 butlerConfig = Config(other) 139 except FileNotFoundError as e: 140 # No reason to talk about aliases unless we were given a 141 # string and the alias was not resolved. `  
Further down the error message says: `391 if not uri.exists():  
 → 392 raise FileNotFoundError(f"Config location {uri} does not exist.")  
393 raise RuntimeError(f"The Config URI does not have a supported extension: {uri}")

FileNotFoundError: Config location file:///home/l/laliotis/notebooks/tutorial-notebooks/dp02 does not exist.  
`  
Which I think is the main issue. I was wondering whether my setup is not configured correctly or if someone can help me resolve this issue. Thanks!

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [December 4, 2024, 10:48pm UTC](https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619/2 "2024-12-04T22:48:12Z")

</div>

From a terminal at the RSP (assuming you are on data.lsst.cloud and not USDF) can you check that `$DAF_BUTLER_REPOSITORY_INDEX` is set? It should have a value of `https://data.lsst.cloud/api/butler/configs/idf-repositories.yaml`.

From a notebook you can see what values are known with:

```auto
dafButler.Butler.get_known_repos()

```

which will output `{'dp02', 'dp02-direct', 'dp02-remote'}`.

---

<div class="post-metadata">

**Author:** ![kklaliotis](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/kklaliotis/32/3116_2.png) [@kklaliotis](https://www.rubin.community/u/kklaliotis)\
**Post date:** [December 5, 2024, 12:51am UTC](https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619/3 "2024-12-05T00:51:54Z")

</div>

Actually I’m on USDF.

`get_known_repos` returns a long list of things, but dp02 is not in there. `$DAF_BUTLER_REPOSITORY_INDEX` points to a file `data-repos.yaml` on sdf .

---

<div class="post-metadata">

**Author:** ![MelissaGraham](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/melissagraham/32/2549_2.png) [@MelissaGraham](https://www.rubin.community/u/MelissaGraham)\
**Post date:** [December 5, 2024, 1:07am UTC](https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619/4 "2024-12-05T01:07:09Z")

</div>

Hi @kklaliotis, thanks for this question. DP0.2 is not supported at the USDF, but is available via the RSP at data.lsst.cloud. The tutorial notebooks will run just fine there.

For the process to get an account at data.lsst.cloud:

> **[Getting an account on the RSP](https://rsp.lsst.io/guides/getting-started/get-an-account.html)**
>
> Things to know before you get started: Rubin data rights are required in order to hold an account in the Rubin Science Platform. All scientists and students affiliated with an institution in the US...

---

<div class="post-metadata">

**Author:** ![kklaliotis](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/kklaliotis/32/3116_2.png) [@kklaliotis](https://www.rubin.community/u/kklaliotis)\
**Post date:** [December 5, 2024, 5:32pm UTC](https://www.rubin.community/t/butler-issue-in-tutorial-notebook-01/9619/5 "2024-12-05T17:32:03Z")

</div>

Ah I see. Thanks!
