vscode-azureappservice
vscode-azureappservice copied to clipboard
Getting Exception <ModuleNotFoundError: No module named 'spacy' > while deploying python app in azure
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

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.
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.
Can you try running it again without the SCM_DO_BUILD... flag set to true and tell us if that fixes the issue?
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!