[Python] Azure Functions - No module named '__app__.appname.error_codes'

Discussão em 'Python' iniciado por Stack, Agosto 8, 2025.

  1. Stack

    Stack Membro Participativo

    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
    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 <module>
    from .utils import Client
    File "/home/site/wwwroot/hubs_watchtower_data/utils.py", line 12, in <module>
    from .models import Site
    File "/home/site/wwwroot/hubs_watchtower_data/models.py", line 11, in <module>
    from .error_codes import Error


    I tried to recreate it but no luck

    Continue reading...

Compartilhe esta Página