Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Load Session from Zipfile #2437

wants to merge 1 commit into from

Commits on May 18, 2022

  1. Load Session from Zipfile

    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.
    kojiromike committed May 18, 2022
    Configuration menu
    Copy the full SHA
    88fb613 View commit details
    Browse the repository at this point in the history