Python Import from Lambda Layer Succeeds, but still gives NameError

I am trying to import python code in a Lambda Layer and the import seems to succeed (i have it in a try-except block that logs when it errors) but when I try to run the code I get a NameError with what I import. Rather than typing it all out again, the full explanation is in this StackOverflow post.

Does anyone know what I’m doing wrong with this import?

Please don’t repeat questions in multiple places at the same time. Do respond to the person who asked a question in a comment on SO.

1 Like