DP0: No module named 'lsst.rsp'

When running the first cell of delegate-contributions-dp01/Structure/StructureFromTract/SDC_01_ExploreTractStructures.ipynb, I got the following error:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-6c553ea44974> in <module>
     11 
     12 # Import the Rubin TAP service utilities
---> 13 from lsst.rsp import get_tap_service, retrieve_query
     14 
     15 # LSST Science Pipelines (Stack) packages

ModuleNotFoundError: No module named 'lsst.rsp'

This was fixed by clicking on File → Save all and Exit.

1 Like

Thank you @tassia!

Just to expand a bit on that, after exiting, log back in and start a new server with the most recent version of the recommended image. This error was caused by the recent update to version Weekly 2021_40, and could happen again in a couple of weeks with the next update.

To figure out which image version your current RSP session is using, look in the lower left corner of the Notebook Aspect to see, e.g.:

It is recommended in the Jupyter Notebook documentation that all RSP users log out every time they are finished with a session in order to both preserve resources for other users and to ensure the RSP is re-entered in a known state every time, using the most recent version of the recommended image.