OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Azure Functions - No module named '__app__.appname.error_codes'

  • Thread starter Thread starter Oscar Montañes
  • Start date Start date
O

Oscar Montañes

Guest
I am receiving this error trying to run a TimerTigger AZ function from the web.

Code:
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?
<p>I am receiving this error trying to run a TimerTigger AZ function from the web.</p>
<pre><code>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
</code></pre>
<p>I tried to recreate it but no luck?</p>
I have found how to fix this.
 

Latest posts

H
Replies
0
Views
1
hohohohoho
H
Top