Search code examples
amazon-web-servicesaws-glueamazon-sagemaker

AWS Glue Sagemaker Notebook "No module named awsglue.transforms"


I've created a Sagemaker notebook to dev AWS Glue jobs, but when running through the provided example ("Joining, Filtering, and Loading Relational Data with AWS Glue") I get the following error:

enter image description here

Does anyone know what I've setup wrong/haven't setup to cause the import to not work?


Solution

  • You'll need to download the library files from here for Glue 0.9 or here for Glue 1.0 (Check your Glue jobs for the version).

    Put the zip in S3 and reference it in the "Python library path" on your Dev Endpoint.