pytelebot icon indicating copy to clipboard operation
pytelebot copied to clipboard

AWS Error Message "errorMessage": "Unable to import module 'bot'"

Open Bart1909 opened this issue 8 years ago • 1 comments

Hi, i tried to follow your instructions. In my environment everything works fine, but when I'm going to run it with AWS lambda and run the test-function i get the following errors: "errorMessage": "Unable to import module 'bot'" START RequestId: c825e4f7-03d6-11e6-a946-39cea203c18e Version: $LATEST Unable to import module 'bot': No module named telepot

END RequestId: c825e4f7-03d6-11e6-a946-39cea203c18e

Do you have an idea, what i've done wrong and how to fix this?

Bart1909 avatar Apr 16 '16 13:04 Bart1909

I had some issue, but it was not code problem. I figured out what was the cause by http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html My mistake was the bot.py was not on the root of .zip

dikien avatar Oct 16 '16 04:10 dikien