Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Local dataset not recognised #557

Closed
kjpearson opened this issue Mar 13, 2018 · 7 comments
Closed

Local dataset not recognised #557

kjpearson opened this issue Mar 13, 2018 · 7 comments
Assignees
Milestone

Comments

@kjpearson
Copy link

I'm running the CLI steps given by @JanisGailis in #538 but the dataset I have just downloaded is not recognised.

(cate) $ cate ds list
....
170: local.SST CCI subset 2000-2001
171: local.SST CCI subset sep 1991-aug 1993
172: local.SST_2006_2007
173: local.esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1.dca2f503-7ee0-32ef-a200-afdf8ae650b
(cate) $ cate ws init
Workspace initialized.
(cate) $ cate res open sst local.SST_2006_2007
Traceback (most recent call last):
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/util/web/jsonrpchandler.py", line 192, in send_service_method_result
result = future.result()
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/util/web/jsonrpchandler.py", line 271, in call_service_method
result = method(**method_params, monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/webapi/websocket.py", line 284, in set_workspace_resource
monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/wsmanag.py", line 323, in set_workspace_resource
workspace.execute_workflow(res_name=res_name, monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/workspace.py", line 599, in execute_workflow
self.workflow.invoke_steps(steps, context=self._new_context(), monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/workflow.py", line 627, in invoke_steps
steps[0].invoke(context=context, monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/workflow.py", line 318, in invoke
self._invoke_impl(_new_context(context, step=self), monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/workflow.py", line 980, in _invoke_impl
return_value = self._op(monitor=monitor, **input_values)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/op.py", line 215, in call
return_value = self._wrapped_op(**input_values)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/ops/io.py", line 81, in open_dataset
monitor=monitor)
File "/Users/kevinpearson/cate-2.0.0.dev1/lib/python3.6/site-packages/cate/core/ds.py", line 503, in open_dataset
raise ValueError("No data_source found for the given query term", data_source)
ValueError: ('No data_source found for the given query term', 'local.SST_2006_2007')

cate res: error: set_workspace_resource() call raised exception: "('No data_source found for the given query term', 'local.SST_2006_2007')"

@forman forman added this to the IRM8 milestone Mar 14, 2018
@forman
Copy link
Member

forman commented Mar 14, 2018

There may be a problem in cate.core.ds or cate.ds.local, but there is also a problem in the CLI, as such stack traces should only be printed when given the option --traceback.

@forman
Copy link
Member

forman commented Mar 14, 2018

Just started Cate Desktop dev3 which loaded my previous workspace and I got:

image

Traceback:

  File "D:\Projects\cate\cate\core\workflow.py", line 318, in invoke
    self._invoke_impl(_new_context(context, step=self), monitor=monitor)
  File "D:\Projects\cate\cate\core\workflow.py", line 980, in _invoke_impl
    return_value = self._op(monitor=monitor, **input_values)
  File "D:\Projects\cate\cate\core\op.py", line 215, in __call__
    return_value = self._wrapped_op(**input_values)
  File "D:\Projects\cate\cate\ops\io.py", line 81, in open_dataset
    monitor=monitor)
  File "D:\Projects\cate\cate\core\ds.py", line 505, in open_dataset
    raise ValueError("%s data_sources found for the given query term '%s'" % (len(data_sources), data_source))
ValueError: 2 data_sources found for the given query term 'local.2010.CLOUD.mon.L3C.CLD_PRODUCTS.multi-sensor.multi-platform.ATSR2-AATSR.2-0.r1'

@kbernat kbernat self-assigned this Mar 14, 2018
@forman
Copy link
Member

forman commented Mar 15, 2018

Very strange, I could not reproduce my bug today.

@papesci
Copy link
Contributor

papesci commented Mar 27, 2018

The local data Store should be updated every time the user ask to open a resource. At the present moment the update is done only at the time of web server lunch. So when the user create a new local DS and the webapi process is already running the data set is not properly inserted in the list.

@papesci papesci assigned papesci and unassigned kbernat Mar 29, 2018
@papesci
Copy link
Contributor

papesci commented Apr 3, 2018

I made a new branch
557 local-ds-not-visible
which fix the current issue

@forman forman added the blocker label Apr 13, 2018
@forman
Copy link
Member

forman commented May 1, 2018

@papesci please see my PR review so we merge and can close this.

@forman
Copy link
Member

forman commented May 7, 2018

@HelenClifton considers this being fixed now. Closing it.

@forman forman closed this as completed May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants