Comments (10)
does o.content_length work better for you? I couldn't figure out the s3.ObjectSummary example in the documentation.
from boto3.
Unfortunately not:
AttributeError: 's3.ObjectSummary' object has no attribute 'content_length'
from boto3.
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.
This is now released in 0.0.8.
from boto3.
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.
@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.
any updates on this?
from boto3.
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.
Still acting odd for me too.
from boto3.
Yep, still a bug. Seems to have been reported again here #832.
from boto3.
Related Issues (20)
- InvalidParameterException when starting a Textract async job for Document Analysis HOT 3
- validate_e911_address returns invalid country code HOT 2
- Validation Exception: Invalid API version when calling InvokeModel [bedrock-runtime] HOT 2
- Collaborate with AWS SDK Code Examples team
- ECS ListContainerInstances (1.34.150) - incorrect 'MaxItems' details HOT 2
- AWS Lambda - "list_coverage" filter on `lambdaFunctionRuntime` not working HOT 7
- list_protections doc does not state an optional field. HOT 3
- Converse API skips 'required' tool spec parameters HOT 2
- Dangling Parameter - should be removed from SNS Docs HOT 1
- Image corruption when uploading to S3 using Boto3 in Lambda HOT 2
- Use IAM ID instead of username HOT 1
- Example for MultipartUpload HOT 5
- Error writing records to Timestream HOT 1
- Bedrock - Add way to identify which models an account currently has access to HOT 3
- Inconsistent description of `type` response for `describe_directories` HOT 2
- Bedrock invoke_agent boto3 does not have knowledgeBaseConfigurations HOT 6
- Allow to define client_config when using boto3.setup_default_session
- Default Value for `NextToken` in `SageMaker.Client.list_model_packages` HOT 1
- why MissingFields error is occured HOT 2
- How to invoke an API gateway rest api endpoint with credentials
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boto3.