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

cwlpack: impossible to pack workflow with $import directive in inputs #62

Open
npilshchikova opened this issue Nov 18, 2022 · 0 comments

Comments

@npilshchikova
Copy link

npilshchikova commented Nov 18, 2022

When using cwlpack on workflow with $import directive like this:

inputs:

- $import: ./config.yml
  

an error occurs:

$ cwlpack test.cwl --json
Packing test.cwl
Traceback (most recent call last):
  File "/home/cwlpack-venv/bin/cwlpack", line 8, in <module>
    sys.exit(localpack())
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/pack.py", line 426, in localpack
    _localpack(sys.argv[1:])
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/pack.py", line 454, in _localpack
    cwl = pack(
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/pack.py", line 369, in pack
    cwl = pack_process(cwl, full_url, cwl["cwlVersion"], add_ids=add_ids)
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/pack.py", line 69, in pack_process
    cwl = resolve_schemadefs(cwl, base_url, user_defined_types)
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/pack.py", line 168, in resolve_schemadefs
    cwl = schemadef.inline_types(cwl, "inputs", base_url, user_defined_types)
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/schemadef.py", line 109, in inline_types
    cwl[port] = [_inline_type(v, base_url, user_defined_types) for v in defs]
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/schemadef.py", line 109, in <listcomp>
    cwl[port] = [_inline_type(v, base_url, user_defined_types) for v in defs]
  File "/home/cwlpack-venv/lib/python3.8/site-packages/sbpack/schemadef.py", line 175, in _inline_type
    f"In file {base_url.geturl()}, type {_type.get('name')} is missing type name")
AttributeError: 'NoneType' object has no attribute 'get'
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

1 participant