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.

S3Path.write_bytes does not work

See original GitHub issue

Python 3.8 s3path: 0.1.8

Calling write_bytes on an S3Path fails as the pathlib write_bytes method wraps the data in a memoryview. S3Path’s _string_parser then fails to detect and treat it as bytes / binary and therefore fails when calling encode on the data.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
damonmariacommented, Jan 28, 2020

Tested and works. Thanks for being so responsive.

1reaction
liormizrcommented, Jan 28, 2020

Oops, sorry about that Now looks good version: 0.1.91 deployed

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to write a file or data to an S3 object using boto3
When I try s3.Object().put() I end up with an object with zero content-length . For me put() only accepts string data, but put(str(binarydata)) ......
Read more >
s3 sync errors with "file does not exist" for file in exclude path
This seems to be similar to #1082 We run s3 sync using the following command: s3 sync --delete --exclude '*' --include ...
Read more >
cloudpathlib.S3Path
A library that implements pathlib.Path methods for URIs for different cloud providers.
Read more >
Insufficient permissions when using Athena with Amazon ...
Troubleshoot certain issues with insufficient permissions when using Amazon Athena with Amazon QuickSight.
Read more >
Common Problems with Amazon S3 - Zapier Help
I want to add files to a folderIn Amazon S3, folders are designated by the key name. For example, if you upload a...
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