简体   繁体   中英

Azure App Service with Python 3.9 deployment failed

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

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

  1. Go to the WebApp azure portal page
  2. Select configuration on the left hand side of the page
  3. Select General Settings
  4. Change the Minor Version of python to 3.8 (I have not tested 3.7)

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM