Pyodbc package is not installing during function app deployment

Jordan 25 Reputation points
2025-06-25T14:16:07.8166667+00:00

I am using a function app with pyodbc which consistently fails for Failed to import src.services.oauth_service: No module named 'pyodbc'.

Some fixes I've attempted in order:

  1. Python Version Downgrade
  2. ODBC Driver Installation
  3. Added pymssql>=2.2.0 as alternative
  4. Loading services independently

I've also tried to deploy via github CICD and remote build and both are failing as well.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jordan 25 Reputation points
    2025-06-26T15:10:12.2966667+00:00

    Looks like the answer is to not use Github Actions and do a remote deploy. Every time I use github actions there's a package issue, but I don't have the same error when doing a remote deploy from my local machine.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.