gpt4 book ai didi

python - VS Code Azure 部署 Python Http 触发器功能失败 - 找不到 GLIB_2.27

转载 作者:行者123 更新时间:2023-12-03 02:14:49 25 4
gpt4 key购买 nike

我正在尝试将本地良好运行的功能部署到Azure

  • VS 代码版本:1.65.2
  • Azure 工具 v0.2.1
  • Azure Functions v1.6.1

我的requirements.txt

msrest
msrestazure
azure-core
azure-common
azure-functions
azure-identity
azure-storage-blob
azure-keyvault-secrets

部署从这里开始出现问题:

12:41:40 ShopifyWebhookHandler:   python: 3.9.12
12:41:40 ShopifyWebhookHandler: Source directory : /tmp/zipdeploy/extracted
12:41:40 ShopifyWebhookHandler: Destination directory: /home/site/wwwroot
12:41:41 ShopifyWebhookHandler: /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)
12:41:41 ShopifyWebhookHandler: /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)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: /tmp/oryx/platforms/python/3.9.12/bin/python3.9: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /tmp/oryx/platforms/python/3.9.12/lib/libpython3.9.so.1.0)
12:41:41 ShopifyWebhookHandler: Python Version: /tmp/oryx/platforms/python/3.9.12/bin/python3.9
12:41:41 ShopifyWebhookHandler: Running pip install...
12:41:41 ShopifyWebhookHandler: Done in 0 sec(s).
12:41:43 ShopifyWebhookHandler: /opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.9 -p packagedir=.python_packages/lib/site-packages
12:41:43 ShopifyWebhookHandler: Deployment Failed.
12:41:51 ShopifyWebhookHandler: Deployment failed.

知道如何解决这个问题吗?

还创建了一个 issue在 Github 上

最佳答案

这与 Microsoft Oryx 相关联并打开了 Github 问题。

Hey folks, apologies for the breaking changes that this issue has caused for your applications.

Oryx has pre-installed Python SDKs on the build images; if the SDKthat your application is targeting is not a part of this set, Oryxwill fallback to dynamic installation, which attempts to pull a PythonSDK that meets your application's requirements from our storageaccount, where we backup a variety of Python SDKs.

In this case, it appears that the Python 3.9.12 SDK was published toour storage account yesterday around 3:10 PM PST (10:10 PM UTC), andapplications targeting Python 3.9 are now pulling down this 3.9.12 SDKrather than the previously published 3.9.7 SDK.

I'm optimistic that we should have this resolved in the next couple ofhours, but in the meantime, as folks have mentioned above, if you areable to downgrade your application to using Python 3.8, pleaseconsider doing so. Alternatively, if your build/deployment methodallows you to snap to a specific patch version of Python, pleaseconsider targeting Python 3.9.7, which was the previous 3.9.* versionthat can be pulled down during dynamic installation.

Again, apologies for the issues that this has caused you all.

Github Issue

暂时尝试将 Python 版本回滚到 Python 3.8。

Azure function cli docs

关于python - VS Code Azure 部署 Python Http 触发器功能失败 - 找不到 GLIB_2.27,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71781592/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com