Closed markwilber closed 1 year ago
Hey,
Can you please send us the full script, including the imports section?
Also, can you try to update awswrangler
to a more recent version? Our latest one is 2.18.0
.
Best regards, Leon
As Leon said, I think it's simply due to the fact that you are using a very old version (0.3.1) where the Athena module did not exist. Updating to the latest version should resolve this
Thank you @LeonLuttenberger and @jaidisido for your prompt replies. You had it right: a very stale version, which, oddly enough, conda-forge selected for a fresh install. Supplying an explicit version resolved the issue:
conda install -c conda-forge awswrangler=2.18.*
I faced this issue a few time. The following steps help me fix the issue.
I ran a query in Athena's Query editor, and obtained the desired result. (It does not seem that the specific query mattered here.) I pasted that working query into a python variable
query_string
, and then ran:I used
ctas_approach=False
since I do not have write access to the S3 bucket.Got the following stack trace, which seems ... surprising: