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.

Unable to put a local __init__.py on a S3 location

See original GitHub issue

Trying to run the following

import s3fs
s3 = s3fs.S3FileSystem()
s3.put("./foo/__init__.py", "mybucket/__init__.py")

yields the error:

ClientError: An error occurred (MalformedXML) when calling the CompleteMultipartUpload operation: The XML you provided was not well-formed or did not validate against our published schema

Is it a bug or am I missing something?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
martindurantcommented, Aug 27, 2019

Is the file empty, by any chance?

0reactions
droratacommented, Aug 28, 2019

So I guess this ticket can be closed, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to put a local __init__.py on a S3 location #221 - GitHub
Trying to run the following import s3fs s3 = s3fs.S3FileSystem() s3.put("./foo/__init__.py", "mybucket/__init__.py") yields the error: ...
Read more >
Not able to import module from other directory in Python 3.7.1
Im a s3 util! Im a tableau util! If you don't want to put the test.py in another folder you can simply keep...
Read more >
Resolve "Unable to import module" errors from Python ...
I receive an "Unable to import module" error when I try to run my AWS Lambda code in Python. How do I resolve...
Read more >
Understanding Python imports, __init__.py and pythonpath
We can turn this directory into a package by introducing __init__.py file within utils folder. Within __init__.py , we import all the modules ......
Read more >
CDK for Terraform (CDKTF) on AWS: How to Configure an S3 ...
Initializing first CDKTF project using Python template and local backend. ... Note, we can't delete a non-empty S3 unless we add ...
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