Function app module not found error
Hi,
I am facing issue with the azure function deployed in python environment. The function app service is up and running but the function returns the error when we deploy from CICD. However if we deploy the function from VS studio directly then we are not getting this error . I think the problem description is same as mentioned in the link----
https://learn.microsoft.com/en-us/answers/questions/709634/result-failure-exception-modulenotfounderror-no-mo.html
but I am not able follow the solution mentioned
Error message "
Result: Failure Exception: ModuleNotFoundError: No module named 'requests'. 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.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 359, in _handle__function_load_request func_request.metadata.entry_point) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 42, in call raise extend_exception_message(e, message) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 40, in call return func(*args, **kwargs) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/loader.py", line 127, in load_function mod = importlib.import_module(fullmodname) File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/site/wwwroot/function__init__.py", line 6, in <module> import requests
Please suggest how to resolve this error.