def bad_function_unknown_module(self, context):
 from lxml import etree
 x = etree.fromstring('<hello/>')
 x.attrib['foo'] = None

def bad_function_unknown_module ( self , context ) : from lxml import etree x = etree . fromstring ( '<hello/>' ) x . attrib [ 'foo' ] = None
example traceback that points to a module that getmodule() cant find .