Azure / azure-functions-python-worker

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

[BUG] Module not found error when deploying function from Azure Functions extension in VSCODE #1497

Closed samin-batra closed 3 weeks ago

samin-batra commented 1 month ago

Investigative information

Please provide the following:

Repro steps

Provide the steps required to reproduce the problem:

Deploy to function app using the task: deploy to existing app in Azure functions extension for VSCode

Expected behavior

Provide a description of the expected behavior.

Function app should show the deployed function in azure portal.

Actual behavior

Provide a description of the actual behavior observed.

The deployed function does not show up and an error message is displayed; We were not able to load some functions in the list due to errors. Refresh the page to try again. See details

When I check the logs, it mentions that an error occurred while importing the numpy module.

Known workarounds

https://learn.microsoft.com/en-us/azure/azure-functions/recover-python-functions?tabs=vscode%2Cbash&pivots=python-mode-decorators#troubleshoot-modulenotfounderror

Contents of the requirements.txt file:

Provide the requirements.txt file to help us find out module related issues.

azure-functions pandas==2.0.3 numpy==1.22.3 pyodbc==5.1.0 SQLAlchemy==2.0.30 statsmodels==0.14.1

Related information

Provide any related information

Python version 3.8 and also 3.9. Till yesterday, it was working fine and deploying correctly. However, since then this issue has been coming. Earlier it was with the scikit-learn package that I then removed because I had a workaround for not using it. Now the issue is coming with numpy package. Any help would be greatly appreciated!

bhagyshricompany commented 1 month ago

Thanks for informing will check and confirm the same.

bhagyshricompany commented 1 month ago

Can you try again it seems working fine.please try again if have anything please update with full code

image
microsoft-github-policy-service[bot] commented 1 month ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.