Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
331 stars 100 forks source link

[Bug] Python Function V1 apps - Exception: ModuleNotFoundError: No module named '__app__.XXX'. Cannot find module. #1499

Open YunchuWang opened 1 month ago

YunchuWang commented 1 month ago

Expected Behavior

Python Function Apps using V1 programming model that are:

Actual Behavior

It is reported from customers Exception: ModuleNotFoundError: No module named 'app.XXX'. Cannot find module. gets raised during customers' v1 python apps function loading time intermittently and restarting the app will resolve the error. We have trouble reproducing it and can't confirm at this moment if this is a customer code issue or platform issue.

Steps to Reproduce

No response

Relevant code being tried

No response

Relevant log output

No response

requirements.txt file

No response

Where are you facing this problem?

Production Environment (explain below)

Function app name

No response

Additional Information

Please let us know if you encountered this issue in your python function v1 apps and would really appreciate if you can share your experience and code snippet under this announcement which helps a lot with python function team's investigation.