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.

AttributeError: 'S3' object has no attribute 'download_fileobj'

See original GitHub issue

I’m trying to use the download_obj feature but it seems that is not injected correctly into the client. I tried with the example from the documentation and from tests but I had no luck. download_file works as expected

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
mandarvazecommented, Sep 6, 2018

@ns-cweber change how you “create” s3 as follows :

s3 = boto3.client('s3')

You have created s3 as a ‘resource’ - hence the error.

0reactions
ns-cwebercommented, Sep 6, 2018

Ah, that’s it. Thanks very much. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 's3.ObjectSummary' object has no attribute ...
I am working with python in jupyter notebook. I am trying to download all of the files from an aws s3 ...
Read more >
2 Ways to Fix AttributeError: s3 object has no attribute ...
The download_fileobj() method downloads an object from S3 to a file-like object in binary mode. import boto3 from io import BytesIO s3 =...
Read more >
boto/boto3 - Gitter
Hi, Trying to upload a zip file to s3 but getting error. “ AttributeError: '_SharedFile' object has no attribute 'writing'”
Read more >
's3.ObjectSummary' object has no attribute 'content_length'
's3.ObjectSummary' object has no attribute 'content_length'. The document downloads just fine when I click on the document title, I've verified it exists in ......
Read more >
Downloading files — Boto3 Docs 1.26.32 documentation - AWS
The download_fileobj method accepts a writeable file-like object. ... in the ALLOWED_DOWNLOAD_ARGS attribute of the S3Transfer object at boto3.s3.transfer.
Read more >

github_iconTop Related Medium Post

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