rubin-dp0 / Support

Submit Github Issues related to DP0
MIT License
1 stars 3 forks source link

Tap service not working in tutorial notebooks #23

Closed ledwar04 closed 2 years ago

ledwar04 commented 2 years ago

I am trying to start the TAP service, following the steps on the tutorials (eg tutorial 1): service = get_tap_service()

But, I keep getting an error, when I run the tutorials, and also when I run my own notebooks (that used to work).

To reproduce the error, try running tutorial number one, and it will happen at this command: service = get_tap_service()

Expected behavior There should be no error (and no output).

Screenshots I don't know how to insert a screenshot here. However, this is the error I get (in bold):

**--------------------------------------------------------------------------- DALServiceError Traceback (most recent call last) /tmp/ipykernel_36394/1920553455.py in ----> 1 service = get_tap_service()

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/lsst/rsp/catalog.py in get_tap_service() 36 37 def get_tap_service() -> pyvo.dal.TAPService: ---> 38 return pyvo.dal.TAPService(_get_tap_url(), _get_auth()) 39 40

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/pyvo/dal/tap.py in init(self, baseurl, session) 118 # One such usecase for this is auth. 119 if hasattr(self._session, 'update_from_capabilities'): --> 120 self._session.update_from_capabilities(self.capabilities) 121 122 @property

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/astropy/utils/decorators.py in get(self, obj, owner) 765 val = obj_dict.get(self._key, _NotFound) 766 if val is _NotFound: --> 767 val = self.fget(obj) 768 obj_dict[self._key] = val 769 return val

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/pyvo/dal/vosi.py in capabilities(self) 90 @lazyproperty 91 def capabilities(self): ---> 92 return vosi.parse_capabilities(self._capabilities().read) 93 94

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/pyvo/utils/decorators.py in wrapper(*args, kwargs) 8 @wraps(func) 9 def wrapper(*args, *kwargs): ---> 10 raw = func(args, kwargs) 11 raw.read = partial(raw.read, decode_content=True) 12 return raw

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/pyvo/dal/vosi.py in _capabilities(self) 86 py:class:~pyvo.io.vosi.availability.Availability object 87 """ ---> 88 return self._get_endpoint('capabilities') 89 90 @lazyproperty

/opt/lsst/software/stack/conda/miniconda3-py38_4.9.2/envs/lsst-scipipe-0.7.0/lib/python3.8/site-packages/pyvo/dal/vosi.py in _get_endpoint(self, endpoint) 38 continue 39 else: ---> 40 raise DALServiceError( 41 "No working {endpoint} endpoint provided".format( 42 endpoint=endpoint))

DALServiceError: No working capabilities endpoint provided**

Desktop (please complete the following information): I'm running on Mac OS Big Sur 11.6.1, Chrome

frossie commented 2 years ago

Hi, can you perform the following steps and let me know if it still happens?

  1. Exit from the Notebook menu (Files->Exit without saving or Save and Exit)
  2. Log out from the home page (data.lsst.cloud top right menu)
  3. Start again, making sure you selected the Recommended image

and let us know what happens?

Screenshot for step 1:

Screenshot of Safari (2022-01-11, 19-57-03)

Screenshot for step 2:

Screenshot of Safari (2022-01-11, 11-02-29)

Screenshot for step 3:

Screenshot of Safari (2022-01-11, 19-58-50)
frossie commented 2 years ago

@ledwar04 did that help?

ledwar04 commented 2 years ago

Thank you for the support!

I haven't had time to check yet - I teach all day Tues-Thurs.

l.


From: Frossie @.> Sent: Thursday, January 13, 2022 7:52 AM To: rubin-dp0/Support @.> Cc: Louise Olivia Violet Edwards @.>; Mention @.> Subject: Re: [rubin-dp0/Support] Tap service not working in tutorial notebooks (Issue #23)

@ledwar04https://github.com/ledwar04 did that help?

— Reply to this email directly, view it on GitHubhttps://github.com/rubin-dp0/Support/issues/23#issuecomment-1012264635, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJCBEBBP6MLOPCE5AZYPZV3UV3YKLANCNFSM5LXT6PGA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

ledwar04 commented 2 years ago

Yes! That helped, thanks!