python 3.9部署失败的Azure应用程序服务失败

发布于 2025-01-20 03:12:53 字数 850 浏览 3 评论 0原文

我们正在尝试将相当简单的烧瓶应用程序部署到Azure应用程序服务。部署(使用本地git)失败了以下输出:

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.

那里的任何人都知道为什么会失败?它应该是如此简单.... :( 这是应用程序服务,而不是码头容器,而不是VM ..

问候, 约翰

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Smile简单爱 2025-01-27 03:12:53

今天早上我遇到了同样的错误,并设法通过将应用程序的 python 版本从 3.9 更改为 3.8 来修复它。

我不太确定为什么这是一个问题,因为之前我已将应用程序部署在 python3.9 上。

为了更改您的应用程序 python 版本,您需要

  1. 转到 WebApp azure 门户页面
  2. 选择页面左侧的配置 选择
  3. 常规设置
  4. 将 python 的次要版本更改为 3.8(我尚未测试 3.7)

希望这会有所帮助!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文