How do I resolve "ImportError: No module named" in AWS Glue?

1 minute read
0

I want to resolve an "ImportError: No module named" error that I receive in AWS Glue.

Resolution

If you run an AWS Glue Python shell job that can't find the required Python module or package, then you receive an error similar to the following: "ImportError: No module named pyarrow.compat"

To resolve this issue, provide the missing library as an .egg or .whl file. For detailed instructions, see Using an Egg or Whl file.

Note: AWS Glue Python shell jobs support .egg and .whl files. Python directly imports from either file type.

Important: Python shell jobs support Python 3. For more information, see AWS Glue version support policy.

Related information

How do I use external Python libraries in my AWS Glue ETL job?

AWS OFFICIAL
AWS OFFICIALUpdated 24 days ago