-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash on doc commands #435
Comments
Hey @bpinsard. I have no ideas off the top of my head, but I will try and reproduce this locally. |
Interim note: I have been able to reproduce the issue locally. I'm running on a mac, |
@bpinsard It seems like I've found a solution. For some reason that I haven't been able to figure out yet, the mismatch between the python variable mode=Parameter(
# cmdline argument definitions, incl aliases
args=("-m", "--mode"),
# documentation
doc="""Which type of workflow to run: one of ['new', 'update']""",
), If I change the argument name to When I ran the Both fixes are included in this patch, also displayed below: diff --git a/datalad_catalog/workflow.py b/datalad_catalog/workflow.py
index e10011a..4828fdc 100644
--- a/datalad_catalog/workflow.py
+++ b/datalad_catalog/workflow.py
@@ -117,7 +117,7 @@ class Workflow(ValidatedInterface):
),
mode=Parameter(
# cmdline argument definitions, incl aliases
- args=("-t", "--type"),
+ args=("-m", "--mode"),
# documentation
doc="""Which type of workflow to run: one of ['new', 'update']""",
),
@@ -244,7 +244,7 @@ class Workflow(ValidatedInterface):
)
if mode == "new":
yield from super_workflow(
- ds=dataset,
+ ds=dataset.ds,
cat=catalog,
extractors=extractor,
config_file=config_file,
@@ -253,8 +253,8 @@ class Workflow(ValidatedInterface):
)
if mode == "update":
yield from update_workflow(
- superds=dataset,
- subds=subdataset,
+ superds=dataset.ds,
+ subds=subdataset.ds,
catalog=catalog,
extractors=extractor,
**res_kwargs, If you can download and apply that locally with |
thanks! I will try that asap and let you know. |
It passes the error I had before. However I get 404 on the generated webpage, not sure what I am doing wrong. |
Good to hear! I will proceed with a PR to bring this change into main.
With the "generated webpage" do you mean a locally served webpage using
So do you get a 404 when navigating to the root of the served location (e.g. |
@bpinsard did you manage to get this resolved or is the issue still a problem? |
Running
datalad -l 1 catalog-workflow --type new --catalog ./ --dataset /path/to/dataset/ --extractor metalad_core
I get the following traceback:
Cannot figure out how
--type
does not get into the mode variable.dlad_wtf.txt
The text was updated successfully, but these errors were encountered: