youngsoul/PyAlexa

After following the video guide and uploading the lambda function no main module

Opened this issue · 3 comments

So I followed you're guide video and I did all the steps. I have the base test code it generates. I corrected the template naming, however when I run the module and test in amazon I get that it can't import the main module, which from what I have found is caused when the lambda function can't access the main script because its named incorrectly. I noticed that the name in the zip file is deployment_1main.py I tried that too but get the same error. I've been stuck on this problem for a while and I have tried every variation of the configuration to access the base script I can think of.

Runtime
Python 2.7
Handler main.lambda_handler

Role
lambda_basic_execution

Description
test deployment skill

Advanced settings

image of the problem in console.

https://scontent.fsnc1-1.fna.fbcdn.net/t31.0-8/13662250_10100919094549775_7264484120104498187_o.jpg

Lets see if we can get to the bottom of this.

Maybe it is a difference between mac and pc. I suspect amazon cannot find it because the name of the 'main' file is 'deployment_1main.py' and not main.py. When I open a local deployment zip on my I see files like: 'main.py' and 'pyalexaskill' without any 'deployment_n' prefix.

Where did the deployment_1 name come from? Is that something this python package created or did you create that? Can you attach your zip file?

Can you try the latest version 0.1.9 and start with a new project.

Thanks

That is happening from the version I used when i followed the commands. sure I will try version0.1.9, it happened just running your commands from the root directory of the project to zip it all up wihtout the -r flag.