David Hawkins
David Hawkins

Reputation: 1067

Linux Python Azure Function APP - pyodbc module not found despite being in requirements.txt and other modules working fine

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.

Upvotes: 7

Views: 2445

Answers (1)

Montel Edwards
Montel Edwards

Reputation: 400

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

Upvotes: 4

Related Questions