You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling cwltool.main() with preparsed args only, but including --provenance, should execute and create a RO-Crate, the same as when running as a script.
Actual Behavior
The execution fails, raising Exception("argsl cannot be None")
INFO prov-no-argsl.py 3.1.20230719185429
Traceback (most recent call last):
File "/private/tmp/cwl-prov/prov-no-argsl.py", line 9, in <module>
cwlmain(args=parsed_args)
File "/opt/homebrew/lib/python3.11/site-packages/cwltool/main.py", line 1052, in mainraiseException("argsl cannot be None")
Exception: argsl cannot be None
INFO prov-with-argsl.py 3.1.20230719185429
INFO [cwltool] prov-with-argsl.py --provenance ro-crate hello_world.cwl --message=Hello
INFO Resolved 'hello_world.cwl' to 'file:///private/tmp/cwl-prov/hello_world.cwl'
INFO [job hello_world.cwl] /private/tmp/docker_tmpg0yk4mky$ echo \
Hello
Hello
INFO [job hello_world.cwl] completed success
/opt/homebrew/lib/python3.11/site-packages/rdflib/plugins/serializers/nt.py:40: UserWarning: NTSerializer always uses UTF-8 encoding. Given encoding was: None
warnings.warn(
{}INFO Final process status is success
INFO [provenance] Finalizing Research Object
INFO [provenance] Deleting existing /private/tmp/cwl-prov/ro-crate
INFO [provenance] Research Object saved to /private/tmp/cwl-prov/ro-crate
Note further that it is only when requesting provenance that this error occurs.
INFO no-prov.py 3.1.20230719185429
INFO Resolved 'hello_world.cwl' to 'file:///private/tmp/cwl-prov/hello_world.cwl'
INFO [job hello_world.cwl] /private/tmp/docker_tmpt2b9sgm2$ echo \
Hello
Hello
INFO [job hello_world.cwl] completed success
{}INFO Final process status is success
The text was updated successfully, but these errors were encountered:
Expected Behavior
Calling
cwltool.main()
with preparsed args only, but including--provenance
, should execute and create a RO-Crate, the same as when running as a script.Actual Behavior
The execution fails, raising
Exception("argsl cannot be None")
Workflow Code
Program
prov-no-argsl.py
:Assuming
hello_world.cwl
is in the working directoryFull Traceback
Your Environment
/opt/homebrew/bin/cwltool 3.1.20230719185429
Remarks
Note that if the unparsed arguments are also provided, then execution proceeds as expected
Program
prov-with-argsl.py
:Note further that it is only when requesting provenance that this error occurs.
Program
no-prov.py
:The text was updated successfully, but these errors were encountered: