Refer the following links to resolve the error - the first link is related to AWS Glue 2.0 and the second link helps address the problem for AWS Glue 1.0 or .9...
Also, the following link describes how AWS Glue lets you install additional Python modules and libraries for use with AWS Glue ETL... https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-libraries.html
And finally the following link talks about how you can use a Python shell job to run Python scripts (that are compatible with Python 2.7 or Python 3.6) as a shell in AWS Glue...
Hope this helps.
How can i run SQL statements in my AWS Glue Scriptasked 3 months ago
S3 bucket access on EC2 Instance using boto3Accepted Answerasked 3 months ago
How to use external libraries in AWS Glue Python Shellasked 6 months ago
I can't find my EC2 instance in my dashboardasked 2 months ago
Getting Access Daniel when I load my app on AWS Amplify using s3 bucket methodasked 13 days ago
Where can I found the uri of my Bucket to connect my Symfony application with S3 and upload files?asked 5 months ago
Glue ETL job write part-r-00 files to same bucket as my input. Any way to change this?Accepted Answerasked 5 months ago
How to retrieve job run id from the script itself in python shell glue jobasked 3 months ago
Using External Python Packages on AWS Glue.asked 7 months ago
How to refer arn for an S3 bucket created using cfn resource in cdk python ?asked 2 months ago