Сбой развертывания VS Code Azure функции Python Http Trigger — GLIB_2.27 не найден

Я пытаюсь развернуть мою локально работающую функцию в Azure.

  • Версия кода VS: 1.65.2
  • Инструменты Azure v0.2.1
  • Функции Azure 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.

Есть идеи, как это исправить?

Создал также проблема на Github

Зин

Почему в Python есть оператор "pass"?
Почему в Python есть оператор "pass"?
Оператор pass в Python - это простая концепция, которую могут быстро освоить даже новички без опыта программирования.
Некоторые методы, о которых вы не знали, что они существуют в Python
Некоторые методы, о которых вы не знали, что они существуют в Python
Python - самый известный и самый простой в изучении язык в наши дни. Имея широкий спектр применения в области машинного обучения, Data Science,...
Основы Python Часть I
Основы Python Часть I
Вы когда-нибудь задумывались, почему в программах на Python вы видите приведенный ниже код?
LeetCode - 1579. Удаление максимального числа ребер для сохранения полной проходимости графа
LeetCode - 1579. Удаление максимального числа ребер для сохранения полной проходимости графа
Алиса и Боб имеют неориентированный граф из n узлов и трех типов ребер:
Оптимизация кода с помощью тернарного оператора Python
Оптимизация кода с помощью тернарного оператора Python
И последнее, что мы хотели бы показать вам, прежде чем двигаться дальше, это
Советы по эффективной веб-разработке с помощью Python
Советы по эффективной веб-разработке с помощью Python
Как веб-разработчик, Python может стать мощным инструментом для создания эффективных и масштабируемых веб-приложений.
1
0
42
1
Перейти к ответу Данный вопрос помечен как решенный

Ответы 1

Ответ принят как подходящий

Это связано с открытой проблемой Github с Microsoft Oryx.

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 SDK that your application is targeting is not a part of this set, Oryx will fallback to dynamic installation, which attempts to pull a Python SDK that meets your application's requirements from our storage account, where we backup a variety of Python SDKs.

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

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

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

Проблема с гитхабом

Временно попробуйте откатить версию Python до Python 3.8.

Документация по функциям Azure

Другие вопросы по теме