Reputation: 115
I'm having some trouble using the new aws toolkit for pycharm. When I try to run locally the lambda hello-world from the template I get the following error
Error running '[Local] app.lambda_handler': Failed to locate module for PyFile:app.py
any suggestion? Thanks
Upvotes: 2
Views: 1538
Reputation: 1
Related to: https://github.com/aws/aws-toolkit-jetbrains/issues/372.
Somehow the local AWS does not read the CodeUri when its not set to the project's directory. Meaning that you will have to change the CodeUri setting in our properties to .
Note that when resetting your CodeUri to your main project folder you will also have to move the requirements.txt to .
.
Upvotes: 0
Reputation: 141
I assume you tried to run the SAM hello world template with python 3.x. It should work with python 2.7. The issue might be related to: https://github.com/aws/aws-toolkit-jetbrains/issues/698
The hello world example works with python 2.7. Tried it today [16.01.2019].
Upvotes: 1