Function app module not found error

Niren Adhikary (NAD) 146 Reputation points


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----

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: Stack: File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/", 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/", line 42, in call raise extend_exception_message(e, message) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/", line 40, in call return func(*args, **kwargs) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/", line 127, in load_function mod = importlib.import_module(fullmodname) File "/usr/local/lib/python3.7/importlib/", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/site/wwwroot/", line 6, in <module> import requests

Please suggest how to resolve this error.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,212 questions
{count} votes