-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Load Session from Zipfile #2437
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2437 +/- ##
===========================================
+ Coverage 95.00% 97.02% +2.01%
===========================================
Files 60 59 -1
Lines 12237 11193 -1044
===========================================
- Hits 11626 10860 -766
+ Misses 611 333 -278
Continue to review full report at Codecov.
|
Hello! I'll try to make sure this continues to get attention until someone engages in a real conversation about it. This is September 2021. The original PR was from Feb 8, 2020. |
Hi, friends, it's now October 2021. Trick or treat, please merge this PR 👻 🍫 🍬 ! |
Can't wait for this! |
Hello, it's January 2022. Maybe someone can look at this this year? |
Hello, February! I hope the events of this month turn out to be less harmful than they seem right now 🇺🇦. I also hope that maybe this PR will not be forgotten. |
boto3/botocore might also benefit from aws/aws-cli#6828 |
801847c
to
07dbf44
Compare
Hi, it's May. May I merge this some day? |
When attempting to use botocore / boto3 in AWS EMR or PySpark, it's necessary to load from a zipfile. However, botocore does not support this. ``` + PYTHONPATH=botocore.zip:boto3.zip + .venv/bin/python -c 'import boto3; client=boto3.client("rds")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/boto3.zip/boto3/__init__.py", line 91, in client File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/boto3.zip/boto3/session.py", line 258, in client File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/botocore.zip/botocore/session.py", line 827, in create_client File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/botocore.zip/botocore/session.py", line 700, in _get_internal_component File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/botocore.zip/botocore/session.py", line 924, in get_component File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/botocore.zip/botocore/session.py", line 163, in create_default_resolver File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/botocore.zip/botocore/loaders.py", line 132, in _wrapper File "/private/var/folders/4f/2ps6fjrj2kn4klgq638844bc0000gq/T/tmp.TKx8uF60/botocore.zip/botocore/loaders.py", line 424, in load_data botocore.exceptions.DataNotFoundError: Unable to load data for: endpoints ``` This is a re-submission of boto#1969 [with permission from @gliptak](boto#1969 (comment)), the original author.
Hi, we continue to occasionally have engineers run into this problem. It's a chore to have to remember to explicitly exclude boto3 from our EMR job zipfiles to avoid what appears to us to be a completely unnecessary problem. |
Hello from April, 2023, I hope you've been having a great year so far. Any chance someone from AWS could address this? |
Hello from June, 2023. It'd be great if AWS could take a look at this. |
Hello from April 18, 2024! How's everyone doing this year? Well enough to look at this PR, maybe? :D |
Thanks for the pull request, and for your patience. A more comprehensive solution with additional testing is required here. In a more recent PR (#2708) the team started to explore options here, but that pull request was insufficient, and ultimately this is something that would need to be addressed in a new major version. We'll keep the feature request open for tracking purposes, and I've marked it as |
When attempting to use botocore / boto3 in AWS EMR or PySpark, it's necessary to load from a zipfile. However, botocore does not support this.
This is a re-submission of #1969 with permission from @gliptak, the original author.