Python functions app stopped working

kanna 106 Reputation points
2022-09-02T13:21:48.497+00:00

Hi,

I have a Functions app based on https://github.com/anthonychu/20220303-python-func-playwright
Which used to work but stopped working a while ago. I have done some debugging but unable to find the issue.

I deploy the application from vscode using remote build.
I'm seeing some issues while installing dependencies.

I have tried installing the packages in virtual environment on WSL and I do not see any errors.
There is also warning about upgrading pip.

I would like to try upgrading pip before installing packages, it that possible?

Cheers

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,382 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,441 Reputation points
    2022-09-07T13:04:34.893+00:00

    @kanna ,

    Thanks for posting your query in Q&A.

    You can upgrade the pip, install all the dependencies and then publish to azure using remote build. Even though pip upgrading is being done on the local machine, it will make sure that the python project folder has updated its dependencies and then deployed to Azure Functions runtime.

    Upgrade pip : python -m pip install --upgrade pip

    Install dependencies : pip install -r requirements.txt

    Publish to Azure : func azure functionapp publish <APP_NAME>

    0 comments No comments