Skip to content
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

CWL: Bug when using cwltoil (due to overrides?) #2333

Closed
mb1069 opened this issue Aug 6, 2018 · 5 comments
Closed

CWL: Bug when using cwltoil (due to overrides?) #2333

mb1069 opened this issue Aug 6, 2018 · 5 comments

Comments

@mb1069
Copy link
Contributor

mb1069 commented Aug 6, 2018

Hi,
I'm experiencing an issue when running my workflow with cwltoil, though it works in cwltool.
The error is:
Traceback (most recent call last): File "/Users/mdb/miniconda2/bin/cwltoil", line 11, in <module> sys.exit(main()) File "/Users/mdb/miniconda2/lib/python2.7/site-packages/toil/cwl/cwltoil.py", line 1014, in main options, sys.stdin, None, [], options.job_order) File "/Users/mdb/miniconda2/lib/python2.7/site-packages/cwltool/main.py", line 141, in load_job_order overrides.extend(resolve_overrides(job_order_object, file_uri(job_order_file), tool_file_uri)) File "/Users/mdb/miniconda2/lib/python2.7/site-packages/cwltool/load_tool.py", line 377, in resolve_overrides ret, _ = ovloader.resolve_all(ov, baseurl) File "/Users/mdb/miniconda2/lib/python2.7/site-packages/schema_salad/ref_resolver.py", line 871, in resolve_all val, base_url+subscope, file_base=file_base, checklinks=False) TypeError: can only concatenate list (not "str") to list

packed_workflow.txt
pipeline_input.txt

┆Issue is synchronized with this JIRA Story
┆Issue Number: TOIL-327

@mb1069 mb1069 changed the title Bug when using cwltoil (due to overrides?) CWL: Bug when using cwltoil (due to overrides?) Aug 6, 2018
@DailyDreaming
Copy link
Member

I believe this ought to be closed by the same PR fix as #2334.

@mb1069
Copy link
Contributor Author

mb1069 commented Aug 17, 2018

Hi,
This issue is still occurring in the latest pull from github (hash 9a38107)
I've gone into the code and found that the base_url used in ref_resolver.resolve_all is a list when the overrides are specified, but is a string in all other cases?

Any help on this would be greatly appreciated!

@mb1069
Copy link
Contributor Author

mb1069 commented Aug 17, 2018

resourceRequirementErrorExample.zip

I've created a minimal example,
this works using cwltool --outdir out metaspades.cwl metaspades_paired.yml
but fails when using cwltoil --outdir out metaspades.cwl metaspades_paired.yml

@DailyDreaming
Copy link
Member

@mr-c wrote a fix at #2333 that was just merged. @mb1069 can you test this to see if it solves your issue?

@mb1069
Copy link
Contributor Author

mb1069 commented Aug 21, 2018

I can confirm the patch works as expected, thank you both for your support!

@mr-c mr-c closed this as completed Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants