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.

TypeError: unhashable type: 'CommentedSeq'

See original GitHub issue

I get following error when running one of my CWL workflow with toil 3.13.0:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/toil/worker.py", line 316, in main
    job._runner(jobGraph=jobGraph, jobStore=jobStore, fileStore=fileStore)
  File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1323, in _runner
    returnValues = self._run(jobGraph, fileStore)
  File "/usr/local/lib/python2.7/dist-packages/toil/job.py", line 1268, in _run
    return self.run(fileStore)
    shortname(inp["source"]), promises[inp["source"]].rv())
  File "/usr/local/lib/python2.7/dist-packages/cwltool/process.py", line 170, in shortname
    d = urllib.parse.urlparse(inputid)
  File "/usr/lib/python2.7/urlparse.py", line 143, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib/python2.7/urlparse.py", line 176, in urlsplit
    cached = _parse_cache.get(key, None)
TypeError: unhashable type: 'CommentedSeq'

For older versions of toil I get:

 Traceback (most recent call last):
  File "/usr/local/bin/cwltoil", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/toil/cwl/cwltoil.py", line 876, in main
    job = cwltool.main.load_job_order(options, t, sys.stdin)
TypeError: load_job_order() takes exactly 5 arguments (3 given)

With the cwltool it works, though.

Has someone an idea what went wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mr-ccommented, Jan 19, 2018

We recently fixed cwltool to accept this, so toil needs to update its cwltool dependency to gain the fix.

0reactions
ghostcommented, Jul 18, 2018

@mr-c which version of cwltool fixes this? Thanks! I’m getting this error with the current release of Toil which has the cwltool requirement 1.0.20180518123035. Could I be running into something else? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle Unhashable Type List Exceptions in Python
The Python TypeError: Unhashable Type: 'list' happens when a mutable list, instead of an immutable tuple, is used as a hash argument.
Read more >
TypeError: unhashable type: 'dict' - python - Stack Overflow
You're trying to use a dict as a key to another dict or in a set . That does not work because the...
Read more >
bd2k-genomics-toil/Lobby - Gitter
TypeError : unhashable type: 'CommentedSeq' ... we set a break on the last line of cwltool code executed before the TypeError with b...
Read more >
Python ruamel.yaml.comments.CommentedSeq() Examples
This page shows Python examples of ruamel.yaml.comments.CommentedSeq.
Read more >
Python How To Fix TypeError: unhashable type - YouTube
My first troubleshooting video was well received. It looks like there's an appetite for video like these. So as I continue to build...
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