Hi, there seems to be a bug in the current version of the library.
Someone else already descibed it on Stackoverflow:
Using interactive Glue Sessions in a Jupyter Notebook was working correctly with the aws-glue-sessions package version 0.32 installed. After upgrading with pip3 install --upgrade jupyter boto3 aws-glue-sessions to version 0.35, the kernel would not start. Gave an error message in GlueKernel.py line 443 in set_glue_version Exception: Valid Glue versions are {'3.0', '2,0} and the Kernel won't start.
I had the same problem on Windows 10 and of course I also took care to do the usual .aws configuration beforehand.
There were two ways to fix this problem for me:
using version 0.32, i.e. installing with pip3 install --upgrade jupyter boto3 aws-glue-sessions==0.32 instead of the regular pip3 install --upgrade jupyter boto3 aws-glue-sessions
installing the current version (0.37.0) and then manually fixing the bug in aws_glue_interactive_sessions_kernel\glue_pyspark\GlueKernel.py
Hi, there seems to be a bug in the current version of the library. Someone else already descibed it on Stackoverflow:
I had the same problem on Windows 10 and of course I also took care to do the usual .aws configuration beforehand. There were two ways to fix this problem for me:
pip3 install --upgrade jupyter boto3 aws-glue-sessions==0.32
instead of the regularpip3 install --upgrade jupyter boto3 aws-glue-sessions
0.37.0
) and then manually fixing the bug inaws_glue_interactive_sessions_kernel\glue_pyspark\GlueKernel.py
For fixing it
The problem is with this piece of code:
Manually changing the code to the way it was implemented in the
0.32
version solved the problem: