I think I'm trying to do something really simple but keep running into problems.
I am trying to deploy a Python function that uses two Python files, __init__.py and another one called handler.py. Here is all of __init__.py:
import json
import logging
import azure.functions as func
import handler
def main(req: func.HttpRequest) -> func.HttpResponse:
result = handler.yourFunction(req.params, None)
return func.HttpResponse(result)
For whatever reason, whenever I run this function I get an error saying that the handler module cannot be found. I can view the folder structure on Azure and see that it is in the same folder as __init__.py.
I am really confused why this is not working. I can deploy Node.js functions just fine but Python ones just keep running into problems.