Skip to content

BUG: to_json not allowing uploads to S3 (#28375) #31552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 2, 2020

Conversation

YagoGG
Copy link
Contributor

@YagoGG YagoGG commented Feb 1, 2020

@jschendel jschendel added Bug IO JSON read_json, to_json, json_normalize IO Network Local or Cloud (AWS, GCS, etc.) IO Issues labels Feb 1, 2020
@jschendel jschendel added this to the 1.0.1 milestone Feb 1, 2020
@YagoGG
Copy link
Contributor Author

YagoGG commented Feb 1, 2020

Hi, @jschendel! Thanks a lot for reviewing, I just made the changes you requested.

I was surprised to see the test suite fail as both ./ci/run_tests.py and pytest pandas/tests/io/json/test_pandas.py -k to_s3 were passing in my Docker container (which has no AWS credentials whatsoever). Any ideas on why? I may make further contributions in the future and I want to make sure that my dev env works properly.

Anyways, let's see if it works this time!

@jreback jreback removed this from the 1.0.1 milestone Feb 1, 2020
@jschendel
Copy link
Member

Any ideas on why? I may make further contributions in the future and I want to make sure that my dev env works properly.

Your environment is probably okay. It looks like most failed due to ModuleNotFoundError: No module named 'boto3'. We don't have boto3 as required package for non-dev environments, so it's not present on many of the CI builds (we test under various versions of python, packages, operating systems, locales, etc). The s3_resource gracefully handles this among other things.

@YagoGG
Copy link
Contributor Author

YagoGG commented Feb 1, 2020

@jschendel sounds good, thanks!

@jreback thanks for the feedback, I have just updated the PR accordingly.

Copy link
Member

@jschendel jschendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick follow-ups! A couple small cleanup related comments. Also we squash and merge so you don't need to force push updates and can instead push additional commits - makes reviewing a little easier when people can see a history of commits.

@WillAyd
Copy link
Member

WillAyd commented Feb 1, 2020

Lgtm outside code checks / @jschendel comments

@YagoGG
Copy link
Contributor Author

YagoGG commented Feb 1, 2020

@jschendel thanks for the heads-up on the commit squashing, and apologies for the linter slip. I've updated the PR after making sure that the checks pass locally this time.

@WillAyd great, thank you!

@jreback jreback added this to the 1.1 milestone Feb 2, 2020
@jreback jreback merged commit e2ae57c into pandas-dev:master Feb 2, 2020
@jreback
Copy link
Contributor

jreback commented Feb 2, 2020

thanks @YagoGG nice patch; very responsive. keep em coming.

@rohan-gt
Copy link

Is this issue fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO JSON read_json, to_json, json_normalize IO Network Local or Cloud (AWS, GCS, etc.) IO Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to write JSON to S3 use to_json
5 participants