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.

Error "'HTTPResponse' object has no attribute 'chunked'" when running cwltool

See original GitHub issue

Hi there, I got this error on a fresh install of cwltool + the workflows

$ cwltool --debug workflows/tools/picard-MergeSamFiles.cwl
/home/matthieu/.local/bin/cwltool 1.0.20161207161158
Resolved 'workflows/tools/picard-MergeSamFiles.cwl' to 'file:///home/matthieu/workspace/hive/cwl/workflows/tools/picard-MergeSamFiles.cwl'
Tool definition failed initialization:
('http://dublincore.org/2012/06/14/dcterms.rdf', AttributeError("'HTTPResponse' object has no attribute 'chunked'",))
Traceback (most recent call last):
  File "/home/matthieu/.local/lib/python2.7/site-packages/cwltool/main.py", line 638, in main
    fetcher_constructor=fetcher_constructor)
  File "/home/matthieu/.local/lib/python2.7/site-packages/cwltool/load_tool.py", line 164, in validate_document
    processobj, metadata = document_loader.resolve_all(workflowobj, fileuri)
  File "/home/matthieu/.local/lib/python2.7/site-packages/schema_salad/ref_resolver.py", line 628, in resolve_all
    newctx.add_schemas(document[u"$schemas"], file_base)
  File "/home/matthieu/.local/lib/python2.7/site-packages/schema_salad/ref_resolver.py", line 269, in add_schemas
    content = self.fetch_text(fetchurl)
  File "/home/matthieu/.local/lib/python2.7/site-packages/schema_salad/ref_resolver.py", line 104, in fetch_text
    raise RuntimeError(url, e)
RuntimeError: ('http://dublincore.org/2012/06/14/dcterms.rdf', AttributeError("'HTTPResponse' object has no attribute 'chunked'",))

I have a working internet connection and can download the file with wget but also from within python

$ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> h = urllib.urlopen('http://dublincore.org/2012/06/14/dcterms.rdf')
>>> '<rdf' in h.read()
True

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
tetroncommented, Aug 11, 2017

@kapilkd13 actually we have a build pipeline that’s blocked so I’m going to go ahead on it.

1reaction
nicocesarcommented, Aug 11, 2017

https://packages.ubuntu.com/search?keywords=python-requests https://packages.debian.org/jessie/python-requests

2.4.3 for debian8 2.9.1 for xenial (ubuntu16.04)

maybe on of those will work too? it will be great to have more distros supported rather than forcing the user to install outside the distro.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip/pip3 failing "AttributeError: 'HTTPResponse' object has no ...
The problem was caused by using pip as root. This is the solution: sudo pacman -S python-requests. Afterward, you should use pip like...
Read more >
pip failing “AttributeError: 'HTTPResponse' object has no ...
I'm trying to install pandas on my computer (running Arch), ... failing “AttributeError: 'HTTPResponse' object has no attribute 'chunked'”.
Read more >
Developers - HTTPResponse object has no attribute 'chunked' -
HTTPResponse object has no attribute 'chunked' ... Is this a known issue? Any workarounds? > pip freeze | grep -i cache CacheControl==0.11.7 requests-cache==0.4....
Read more >
Debian -- Source Packages in "sid"
Source Packages in "sid". 0ad (0.0.26-2); 0ad-data (0.0.26-1); 0xffff (0.9-1); 1oom (1.0-2) [contrib]; 2048 (0.20220905.1556-1); 2048-qt (0.1.6-2) ...
Read more >
BOOK OF ABSTRACTS - The R User Conference 2016
trackeR: Infrastructure for Running and Cycling Data from ... Detection of Differential Item Functioning with difNLR function.
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