I try to run AWS Athena SQL queries through Python 2.7.13 and follow the two parameters below, but when I get "python.exe stops working with an error in both cases. I am new to python, any help is greatly appreciated.
Option 1: Tried to use Pyathenajdbc
>>> from pyathenajdbc import connect
>>> import pandas as pd
>>> conn = connect(access_key='<acess_key>',
secret_key='<secret_key>',
s3_staging_dir='s3://Test/',
region_name='<region_name>',
jvm_path='C:\\Program Files (x86)\\Java\\jre6\\bin\\client\\jvm.dll')
>>> df = pd.read_sql("select * from test.test45 LIMIT 1", conn)
Option 2: tried to use jaydebeapi still the same error

Error message in Python debugging using Microsoft Visual studio
Unhandled exception at 0x00170000 in the python.exe file: 0xC0000005: access violation.
source
share