I am receiving this error trying to run a TimerTigger AZ function from the web.
Result: Failure Exception: ModuleNotFoundError: No module named '**app**.appname.error_codes'. Please check the requirements.txt file for the missing module. For more info, please refer the troubleshooting guide: [https://aka.ms/functions-modulenotfound](https://aka.ms/functions-modulenotfound) Stack: File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/dispatcher.py", line 380, in _handle__function_load_request func = loader.load_function( File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 48, in call raise extend_exception_message(e, message) File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 44, in call return func(*args, **kwargs) File "/azure-functions-host/workers/python/3.10/LINUX/X64/azure_functions_worker/loader.py", line 132, in load_function mod = importlib.import_module(fullmodname) File "/usr/local/lib/python3.10/importlib/**init**.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/site/wwwroot/hubs_watchtower_data/**init**.py", line 8, in from .utils import Client File "/home/site/wwwroot/hubs_watchtower_data/utils.py", line 12, in from .models import Site File "/home/site/wwwroot/hubs_watchtower_data/models.py", line 11, in from .error_codes import Error
I tried to recreate it but no luck?
I received the same error code when I tried to import error_codes.py file that is in another folder in my function to my init.py file, Refer below:-
My Function app locally:-
init.pymy error_codes.py inside appname folder:-
Function executed successfully:-