vscode-azureappservice icon indicating copy to clipboard operation
vscode-azureappservice copied to clipboard

Getting Exception <ModuleNotFoundError: No module named 'spacy' > while deploying python app in azure

Open tushaar9027 opened this issue 3 years ago • 2 comments

Hi Everyone,

Getting Exception <ModuleNotFoundError: No module named 'spacy' > while deploying python app in azure . It's working fine locally. Virtual enviroment is there.

spacy version : 3.4.1

image

I can see the package installed in my virtual environment as well...Code is working fine locally

I have added both these configurations in azure & virtual environment was activated in vscode terminal before running the deploy web app command from azure app service extn.

WEBSITE_RUN_FROM_PACKAGE=1 SCM_DO_BUILD_DURING_DEPLOYMENT=true

Please help in fixing this.

tushaar9027 avatar Aug 18 '22 00:08 tushaar9027

Hi ,

Can anyone help me with this issue. As far my understanding is after adding WEBSITE_RUN_FROM_PACKAGE=1 , it should pick everything from my package and i can see space installed on azure as well , still getting no module found on import.

tushaar9027 avatar Aug 22 '22 00:08 tushaar9027

Can you try running it again without the SCM_DO_BUILD... flag set to true and tell us if that fixes the issue?

MicroFish91 avatar Aug 25 '22 22:08 MicroFish91

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

AzCode-Bot avatar Sep 09 '22 05:09 AzCode-Bot