Git Product home page Git Product logo

Comments (5)

m-for-madness avatar m-for-madness commented on May 25, 2024 1

Great! It works!

Thank you!

P.S. Sorry for ignore, i was rly busy...
Nevertheless you do a lot of work. Thank you for that.

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 25, 2024

Would you solve it by passing unpacked values as arguments?

pyathena.connect(s3_staging_dir=env['athena_staging_dir'], region_name=env ['region'], **env['config'])

What value is entered in config? I want a code example.

from pyathena.

m-for-madness avatar m-for-madness commented on May 25, 2024
 import pyathena
from botocore.config import Config

client = pyathena.connect(s3_staging_dir=env['athena_staging_dir'], region_name=env['region'], config=Config(proxies={'https': proxy}))

It fails with error
__init__() got an unexpected keyword argument 'config': TypeError Traceback

I tried to pass it unpacked, but the same issue occurred.

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 25, 2024

I see. Surely the Session object of boto3 does not accept the config argument.
https://github.com/boto/boto3/blob/develop/boto3/session.py#L48

The profile name can only be specified with the Session object.
Do you have any ideas as a workaround?

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 25, 2024

I fixed it. Please check the following branches.
#66

from pyathena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.