Initialize the client for ICESat-2 using the sliderule #455
Replies: 2 comments 2 replies
-
|
Hi @bcalvillo, This is a backward incompatibility bug that I introduced a while back. I'm sorry this is causing you trouble. We try to maintain backward compatibility when updating our client, but I missed this one. To fix the problem you can either:
|
Beta Was this translation helpful? Give feedback.
-
|
@bcalvillo - this is again on me... sorry! We updated SlideRule to version 4.10.0 this morning and the update took a little longer than expected. Usually I can sneak them in on Monday mornings, but you caught me. Please try one more time, and it should work this time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone. First of all, I wanted to thank you for the work you do with this Open Science initiative.
Now, I wanted to mention a problem that I am encountering when trying to initialize the client for ICESat-2 using the slide rule library.
When I do this:
url = "slideruleearth.io"
icesat2.init(url, verbose=False)
asset = "icesat2"
And the response I get is this:
Until now, I hadn’t had any problems with this. I’ve seen that a new version of the library has been released, and I’m not sure if this issue is related to that or to maintenance of the platform. Thank you very much!
FatalError Traceback (most recent call last)
Cell In[20], line 2
1 url = "slideruleearth.io"
----> 2 icesat2.init(url, verbose=False)
3 asset = "icesat2"
File /usr/local/lib/python3.12/dist-packages/sliderule/icesat2.py:278, in init(url, verbose, max_resources, loglevel, organization, desired_nodes, time_to_live, bypass_dns, rethrow)
263 def init (url=sliderule.service_url, verbose=False, max_resources=earthdata.DEFAULT_MAX_REQUESTED_RESOURCES, loglevel=logging.CRITICAL, organization=sliderule.service_org, desired_nodes=None, time_to_live=60, bypass_dns=False, rethrow=False):
264 '''
265 Initializes the Python client for use with SlideRule and should be called before other ICESat-2 API calls.
266 This function is a wrapper for the
sliderule.init(...) function </web/rtds/api_reference/sliderule.html#init>_.(...)
276 >>> icesat2.init()
277 '''
--> 278 sliderule.init(url, verbose, loglevel, organization, desired_nodes, time_to_live, bypass_dns, rethrow=rethrow)
279 earthdata.set_max_resources(max_resources)
File /usr/local/lib/python3.12/dist-packages/sliderule/sliderule.py:791, in init(url, verbose, loglevel, organization, desired_nodes, time_to_live, bypass_dns, plugins, trust_env, log_handler, rethrow)
789 authenticate(organization) # configure credentials (if any) for organization
790 scaleout(desired_nodes, time_to_live, bypass_dns) # set cluster to desired number of nodes (if permitted based on credentials)
--> 791 return check_version(plugins=plugins)
File /usr/local/lib/python3.12/dist-packages/sliderule/sliderule.py:1360, in check_version(plugins)
1346 '''
1347 Check that the version of the client matches the version of the server and any additionally requested plugins
1348
(...)
1357 True if at least minor version matches; False if major or minor version doesn't match
1358 '''
1359 status = True
-> 1360 info = get_version()
1361 # populate version info
1362 versions = {}
File /usr/local/lib/python3.12/dist-packages/sliderule/sliderule.py:1337, in get_version()
1328 '''
1329 Get the version information for the running servers and Python client
1330
(...)
1334 dictionary of version information
1335 '''
1336 global service_org
-> 1337 rsps = source("version", {})
1338 rsps["client"] = {"version": version.full_version}
1339 rsps["organization"] = service_org
File /usr/local/lib/python3.12/dist-packages/sliderule/sliderule.py:910, in source(api, parm, stream, callbacks, path, silence)
908 # Check Success
909 if not complete:
--> 910 raise FatalError("Unable to complete request due to errors")
911 # Return Response
912 return rsps
Beta Was this translation helpful? Give feedback.
All reactions