I'm using a Linux consumption
plan.
I get the following error;
Exception: ModuleNotFoundError: No module named 'pyodbc'
I have added pyodbc
in the requirements.txt
file and other modules in this file such as azure-storage are working fine.
Has anyone seen this issue or can confirm this is a known bug? I can't see any way to manually install this.
New! Save questions or answers and organize your favorite content. Learn more.
Create a local function projectSelect Python from the Create New Project dropdown. Select the version of Python or Python environment you want to run your Azure Function project in. Select HTTP trigger as your project template. You will be prompted to select an Authorization level.
Choose the v2 selector at the top of the article to learn about this new programming model. . While you can develop your Python based Azure Functions locally on Windows, Python is only supported on a Linux based hosting plan when running in Azure. See the list of supported operating system/runtime combinations.
I believe this a bug with the Python worker. I have opened an issue with the team as I am having this issue also. https://github.com/Azure/azure-functions-python-worker/issues/249
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With