GithubHelp home page GithubHelp logo

Comments (10)

augustz avatar augustz commented on August 24, 2024

does o.content_length work better for you? I couldn't figure out the s3.ObjectSummary example in the documentation.

from boto3.

tgal avatar tgal commented on August 24, 2024

Unfortunately not:

AttributeError: 's3.ObjectSummary' object has no attribute 'content_length'

from boto3.

danielgtaylor avatar danielgtaylor commented on August 24, 2024

I've confirmed that this is a bug that's been present for a while but only surfaced from the new resource model changes. I'm working on a pull request to fix this at the moment!

from boto3.

danielgtaylor avatar danielgtaylor commented on August 24, 2024

This is now released in 0.0.8.

from boto3.

gilluz avatar gilluz commented on August 24, 2024

This bug appears in 1.1.2 version.

pip freeze | grep boto3
boto3==1.1.2

python

import boto3
s3 = boto3.resource('s3')
object_summary = s3.ObjectSummary('bucket_name','key')
object_summary.size
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/boto3/resources/factory.py", line 212, in property_loader
'{0} has no load method'.format(self.class.name))
boto3.exceptions.ResourceLoadException: s3.ObjectSummary has no load method

from boto3.

xuchen81 avatar xuchen81 commented on August 24, 2024

@danielgtaylor I am still getting the same problem here for boto3 version 1.2.2

boto3.exceptions.ResourceLoadException: s3.ObjectSummary has no load method

from boto3.

genxstylez avatar genxstylez commented on August 24, 2024

any updates on this?

from boto3.

mjdavies avatar mjdavies commented on August 24, 2024

I'm using 1.4.4 and still getting this error

AttributeError: 's3.ObjectSummary' object has no attribute 'content_length'

Has it been fixed?

If it hasn't, now worries, I'll use something else.

from boto3.

jpwalsh1 avatar jpwalsh1 commented on August 24, 2024

Still acting odd for me too.

from boto3.

alexreg avatar alexreg commented on August 24, 2024

Yep, still a bug. Seems to have been reported again here #832.

from boto3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.