We are trying to deploy a rather simple flask app to azure app service. The deployment (using local git) fails with the following output:
remote: Python Version: /tmp/oryx/platforms/python/3.9.12/bin/python3.9
remote: Creating directory for command manifest file if it doesnot exist
remote: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
remote: Removing existing manifest file
remote: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
remote: Python Virtual Environment: antenv
remote: Creating virtual environment...
remote: Deployment Failed.
Anyone there that has an idea why this fails? It should be so simple.... :( It is an app service, not a docker container, not a vm..
Greets, John
CodePudding user response:
I was getting the same error this morning and managed to fix it by changing the application's python version from 3.9 to 3.8.
I'm not quite sure why this is an issue now as previously I had the application deployed on python3.9.
In order to change your applications python version you need to
- Go to the WebApp azure portal page
- Select configuration on the left hand side of the page
- Select General Settings
- Change the Minor Version of python to 3.8 (I have not tested 3.7)
Hope this helps!