Hi
I have created a python Azure Function. It works fine when deployed from VS Code. However when I deploy it using Azure Devops it doesn't sadly.
The reason it doesn't work is because the packages my python code require won't import (Module Not Found). The deployed zip package I can see (and download) when I look at my functions WEBSITE_RUN_FROM_PACKAGE Setting definitely has the packages my code needs inside it (in the worker_venv directory). My only guess is that this worker_venv virtual environment has not been activated before the function is run.
My function is the simplest hello world type python function the wizard creates with the addition of one "import numpy" line. I have added numpy to my requirements.txt. I have followed what I believe to be the happy "point and click" path for deploying Azure Function devops pipelines. The only thing I changed was python3.6 to 3.7. Everything in my devops pipeline and release deployment is green. But the azure function errors 500 with ModuleNotFound for numpy.
I have run out of things to try. Any help would be gratefully received.
Simon