TypeError: unhashable type: 'CommentedSeq'
See original GitHub issueI 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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We recently fixed cwltool to accept this, so toil needs to update its cwltool dependency to gain the fix.
@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!