generated from datalad/datalad-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Calling get for a single file from a right-click context menu violates a constraint and prevents successful command parametrization/execution:
Screencast from 2022-10-27 14-13-46.webm
The error is:
Traceback (most recent call last):
File "/home/adina/repos/datalad-gooey/datalad_gooey/dataladcmd_ui.py", line 105, in configure
self._parameters = populate_form_w_params(
File "/home/adina/repos/datalad-gooey/datalad_gooey/param_form_utils.py", line 139, in populate_form_w_params
p[1].set_from_spec(cmdkwargs_defaults)
File "/home/adina/repos/datalad-gooey/datalad_gooey/param.py", line 191, in set_from_spec
self.set(spec[self.__name])
File "/home/adina/repos/datalad-gooey/datalad_gooey/param.py", line 163, in set
val = self.get_constraint()(value) if value != _NoValue else value
File "/home/adina/repos/datalad/datalad/support/constraints.py", line 437, in __call__
raise ValueError("all alternative constraints (%s) violated while testing value %r"
ValueError: all alternative constraints ([constraint:<class 'list'>(constraint:path), constraint:None]) violated while testing value PosixPath('/home/adina/ml-books/T.Hastie_R.Tibshirani_J.Friedman-The_Elements_of_Statistical_Learning_Data_Mining_Inference_and_Prediction.pdf')
This does not happen when parametrizing Get from the right-click context menu of the top level dataset.
Metadata
Metadata
Assignees
Labels
No labels