AWS Glue ImportError: cannot import name objectify from lxml

526 views Asked by At

Environment: Glue 3.0, Python 3.7

Downloaded and added wheel file in Glue's Python library path of lxml-4.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl which I downloaded from pypi.

I am trying to run:

from lxml import objectify

But am getting the following error: ImportError: cannot import name 'objectify' from 'lxml' (/tmp/lxml-4.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl/lxml/init.py)

I've seen this post and the likes of it, but can't install manually inside a managed service like Glue.

Any help?

0

There are 0 answers