0

This might be a repetitive question but I am trying to develop a python project with multiple packages which works well in Pycharm but doesn't work when all files are zipped and uploaded to AWS lambda console. The project structure goes like this:

enter image description here But I am getting this error message:

{
  "errorMessage": "Unable to import module 'renewal/lambda_function': No module named 'utils'",
  "errorType": "Runtime.ImportModuleError",
  "stackTrace": []
}

Tried to understand from Relative imports for the billionth time But couldn't get a solution. I tried use relative import, removed renewal from import but nothing worked. Is there any issue with zipping the project? I am quite new to python.

sujays
  • 141
  • 11

0 Answers0