Tutorial How_to_use_RSP_tools/101_Alert_archive/101_1_Alert_retrieval, missing file /etc/nublado/discovery/v1.json

Hi,

I am trying out the steps in the below tutorial (101.1. Alert retrieval service) on my desktop computer.
(The tutorial works fine in the below Jupyter notebook data.lsst.cloud.)

Below all three links are for the same tutorial.

https://psgupta.nb.data.lsst.cloud/nb/user/psgupta/lab/tree/notebooks/tutorials/Prompt/100_How_to_use_RSP_tools/101_Alert_archive/101_1_Alert_retrieval_service.ipynb

The below line
url = get_service_url(“alerts”, “prompt”)

returns the below error.

lsst.rsp._exceptions.DiscoveryNotAvailableError: Cannot get service discovery information: FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nublado/discovery/v1.json’

I am wondering what are the steps to run the tutorial on a desktop computer?

Thanks!
Regards,
Pramod Gupta

======= Detailed steps are below. ===================

import fastavro
… import base64
… import matplotlib.pyplot as plt
… import numpy as np
… import pandas as pd
… import io
… from astropy.io import fits
… from astropy.nddata import CCDData
… from astropy.visualization import (MinMaxInterval, LinearStretch,
… ImageNormalize)

… from lsst.rsp import RSPClient, get_service_url
… from lsst.utils.plotting import (get_multiband_plot_colors,
… get_multiband_plot_symbols)

url = get_service_url(“alerts”, “prompt”)


Traceback (most recent call last):
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/site-packages/lsst/rsp/_discovery.py”, line 82, in _get_discovery
return json.loads(_DISCOVERY_PATH.read_text())

                  ~~~~~~~~~~~~~~~~~~~~~~~~~^^

File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/pathlib/_local.py”, line 546, in read_text
return PathBase.read_text(self, encoding, errors, newline)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/pathlib/_abc.py”, line 632, in read_text
with self.open(mode=‘r’, encoding=encoding, errors=errors, newline=newline) as f:
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/pathlib/_local.py”, line 537, in open
return io.open(self, mode, buffering, encoding, errors, newline)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nublado/discovery/v1.json’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “”, line 1, in
url = get_service_url(“alerts”, “prompt”)
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/site-packages/lsst/rsp/_discovery.py”, line 211, in get_service_url
discovery = _get_discovery()
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/site-packages/lsst/rsp/_discovery.py”, line 84, in _get_discovery
raise DiscoveryNotAvailableError(e) from e
lsst.rsp._exceptions.DiscoveryNotAvailableError: Cannot get service discovery information: FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nublado/discovery/v1.json’

url = get_service_url(“alerts”, “prompt”)
Traceback (most recent call last):
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/site-packages/lsst/rsp/_discovery.py”, line 82, in _get_discovery
return json.loads(_DISCOVERY_PATH.read_text())

                  ~~~~~~~~~~~~~~~~~~~~~~~~~^^

File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/pathlib/_local.py”, line 546, in read_text
return PathBase.read_text(self, encoding, errors, newline)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/pathlib/_abc.py”, line 632, in read_text
with self.open(mode=‘r’, encoding=encoding, errors=errors, newline=newline) as f:
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/pathlib/_local.py”, line 537, in open
return io.open(self, mode, buffering, encoding, errors, newline)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nublado/discovery/v1.json’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “”, line 1, in
url = get_service_url(“alerts”, “prompt”)
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/site-packages/lsst/rsp/_discovery.py”, line 211, in get_service_url
discovery = _get_discovery()
File “/local/tmp/psgupta/python3install/anaconda3/lib/python3.13/site-packages/lsst/rsp/_discovery.py”, line 84, in _get_discovery
raise DiscoveryNotAvailableError(e) from e
lsst.rsp._exceptions.DiscoveryNotAvailableError: Cannot get service discovery information: FileNotFoundError: [Errno 2] No such file or directory: ‘/etc/nublado/discovery/v1.json’

=============================

1 Like

Hi @psgupta, thanks for posting about this issue.

The tutorial notebooks will only run within the Rubin Science Platform’s Notebook Aspect. To access Rubin data remotely from a desktop computer, it is necessary to use the RSP’s API Aspect. There was not yet a tutorial for accessing Prompt products via the RSP’s API, so one has been created: 101.1. Remote access to the Alert Retrieval Service — Prompt Products.

1 Like

Hi @MelissaGraham,

Thanks for creating the below new tutorial!
I tried it out at the Linux command line and it works fine.

101.1. Remote access to the Alert Retrieval Service

I have some suggestions for the tutorials:

(1) This is for the below tutorial.

In the line before section 1.1, can you please put the below paragraph?

====
The below instructions are for running in a Jupyter notebook in data.lsst.cloud.
If you are using a command line on your own computer, first see the below tutorial
and then come back to section 2.1 of this tutorial.

101.1. Remote access to the Alert Retrieval Service — Prompt Products

(2) This is for the below tutorial.

In section 5, in the below line, can you please add the words “section 2.1 of”?

====
From here, use the same python code as in section 2.1 of 101.1. Alert retrieval service.

(3) There are three tutorials with the same id of 101.1.
Is it possible to name them 101.1.1, 101.1.2, and 101.1.3?

Section Navigation
101.1. Navigate the Alerts Viewer interface
101.1. Alert retrieval service
201.1. Alert packets
101. LSSTCam visits database
102. Rubin Schedule Viewer
103. 3I/ATLAS image stamps
Accessing alerts via the Antares client
Rubin First Look Solar System object discoveries
101.1. Remote access to the Alert Retrieval Service

Thanks!
Regards,
Pramod Gupta

Thanks for these suggestions.

(1) It already says “For the Rubin Science Platform at data.lsst.cloud” in the header of every notebook.
(2) Will do.
(3) Tutorials are divided by Aspect so there will always be three “101”, one for each aspect.

Thanks @MelissaGraham !

Regards,
Pramod Gupta

1 Like