I am trying to deploy on Azure web apps, I am getting an error around pycairo, I have tried using containers to work around that , containers are not working and even worse they don't show what the problem is. So I have reverted to Azure Web apps cause atleast I can tell the issue from the logs.
In detail the error looks like:
Failed to build pycairo\nERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects\n\n[notice] A new release of pip is available: 23.0.1 -> 23.3.2\n[notice] To
The web app runs smooth on my local computer, the problem comes on deployment. Whats even worse is even If I uninstall pycairo, the error will persist. Almost like there is no way around it. I have long engaged microsoft Azure support team for days now but there is no solution from their side. And thats why I am appealing to you my coding super heros, to finally end my struggle, this problem has literally stolen a week of my time and afteer spending a long time.
The stack used is Django and postgres
Deploying on Azure using both Web Apps and containers service.
I have changed python versions, I have uninstalled Pycairo, I have tried using docker containers instead. I have contacted microsoft team and hoped on troubleshooting calls.
I was facing the same issue while deploying the python web application with Pycairo package to Azure App Service.
I used the command
sudo apt install libcairo2-dev pkg-config python3-devto resolve the issue.(https://<webappname>.scm.azurewebsites.net)=>SSH, run the below commands:requirements.txt:
test.py:
References:
https://github.com/googlefonts/gftools/issues/121