question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mapSubject error needs fixing

See original GitHub issue

Hello All,

I have a CWL script which uses edit inplace for editing the results in the working directory, but the CWL.

Expected Behavior

It should run and give me the output

Actual Behavior

it complains,

Duplicate keys will become an error in future releases, and are errors by default when using the new API.

warnings.warn(DuplicateKeyFutureWarning(*args)) Tool definition failed validation: (“mapSubject ‘%s’ value ‘%s’ is not a dictand does not have a mapPredicate”, ‘-class’, None)

Workflow Code

cwlVersion: v1.0
class: CommandLineTool
doc: Sp

baseCommand: [python,-m,spladder.spladder]

hints:
  cwltool:InplaceUpdateRequirement:
    inplaceUpdate: true
requirements:
  EnvVarRequirement:
     envDef:
       PYTHONPATH: /cluster/home/usr/spladder/python
  -class: InlineJavascriptRequirement
  -class: InitialWorkDirRequirement
  listing: 
   - entry: $(inputs.spladder_dir)
     writable: true


inputs:
 spladder_gtf: 
  type: File
  inputBinding:
   position: 3
   prefix: -a
 spladder_bams: 
  type: File[]
  inputBinding:
   position: 1
   prefix: -b
   itemSeparator: ","
  secondaryFiles: .bai
 spladder_dir:
  type: Directory
  inputBinding:
   position: 2
   prefix: -o
 spladder_phase2:
  type: string
  inputBinding:
   position: 4
   prefix: -T
 spladder_merge_graphs:
  type: string
  inputBinding:
    position: 5
    prefix: -M
 spladder_qmode:
  type: string
  inputBinding:
    position: 7
    prefix: --qmode
 spladder_quantify_graph:
  type: string
  inputBinding:
    position: 6
    prefix: --quantify_graph


outputs:
 spladder_out:
  type: Directory
  outputBinding:
   glob: $(inputs.spladder_dir.basename)

$namespaces:
  cwltool: http://commonwl.org/cwltool#

Full Traceback

found duplicate key "-class" with value "InitialWorkDirRequirement" (original value: "InlineJavascriptRequirement")
  in "file:///cluster/home/aalva/Projects/PHRT-Immuno/scripts/cwl/spladder_part3.cwl", line 15, column 3

To suppress this check see:
    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

Duplicate keys will become an error in future releases, and are errors
by default when using the new API.

  warnings.warn(DuplicateKeyFutureWarning(*args))
Tool definition failed validation:
("mapSubject '%s' value '%s' is not a dictand does not have a mapPredicate", '-class', None)
Traceback (most recent call last):
  File "/cluster/home/aalva/software/anaconda/envs/py2/lib/python2.7/site-packages/cwltool/main.py", line 657, in main
    do_validate=loadingContext.do_validate)
  File "/cluster/home/aalva/software/anaconda/envs/py2/lib/python2.7/site-packages/cwltool/load_tool.py", line 284, in validate_document
    workflowobj, fileuri, checklinks=do_validate)
  File "/cluster/home/aalva/software/anaconda/envs/py2/lib/python2.7/site-packages/schema_salad/ref_resolver.py", line 861, in resolve_all
    self._resolve_idmap(document, loader)
  File "/cluster/home/aalva/software/anaconda/envs/py2/lib/python2.7/site-packages/schema_salad/ref_resolver.py", line 639, in _resolve_idmap
    "and does not have a mapPredicate", k, v)
ValidationException: ("mapSubject '%s' value '%s' is not a dictand does not have a mapPredicate", '-class', None)

Your Environment

  • cwltool version: Check using cwltool v1.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ranijamescommented, Nov 29, 2018

@mr-c Thanks its now working!

0reactions
ranijamescommented, Nov 30, 2018

@mr-c I did not get the results, the program is staring from the first step. Although few results are there

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after installing MATLAB 2021a - MathWorks
I received this error in 2021b out of nowhere today, but before finding your solution, I opened 2019b and it was working perfectly....
Read more >
Unable to map the subject to a Salesforce.com user
Issue got fixed automatically after the domain resolved. If you are working on your own custom domain then the SSO will fail with...
Read more >
MapSubject (Truth HEAD-SNAPSHOT)
Object) implementation itself; it assumes that method is functioning correctly according to its contract. Testing an equals implementation requires a utility ...
Read more >
Chapter 17. Compiler Output - JBoss.org
ERROR: This topic doesn't have well-formed xml. ... You need to configure how to map Subject from SAMLResponse, which will be send by...
Read more >
1 6. I - Nye County
Does this item require a budget adjustment to be made (Y or N)? ... Commissioner Trummell stated an RFQ should not be a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found