Python 3.11 Function Apps may fail to load with No module named 'pkg_resources'
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
調査の方向性
Start by checking the Python 3.11 worker startup and function indexing behavior described in the issue, then look for where the worker image or dependency environment supplies setuptools. The issue identifies a mitigation in requirements.txt and the setuptools version change from 65.5.1 to 84.2.1. Done means affected apps can load functions when pkg_resources is imported; the issue does not name a test or code entry point.
索引モデルが issue の本文から書いたものです。
説明
Description
Some Python 3.11 Azure Function Apps may fail to load their functions after receiving an updated platform image. Logs show:
ModuleNotFoundError: No module named 'pkg_resources'
The Functions host may start, but function indexing fails, leaving affected functions unavailable. This can occur without changes to application code or dependencies.
Apps are affected when their code—or an installed dependency—imports pkg_resources and relies on the platform image to provide it.
Cause
The updated Python 3.11 image upgraded setuptools from 65.5.1 to 84.2.1. Setuptools removed the deprecated pkg_resources module starting with 82.0.0.
Applications that do not explicitly install a compatible setuptools version can therefore lose access to pkg_resources when the underlying image updates.
Mitigation
Add the following dependency to your app’s requirements.txt , replacing any existing setuptools requirement, and redeploy:
setuptools>=78.1.1,<82
This installs an application-local version of setuptools that still includes pkg_resources , rather than relying on the platform image’s copy. Restarting the app alone does not install this dependency.
For a long-term solution, update affected dependencies or migrate to supported alternatives such as importlib.metadata and importlib.resources .
- 主要言語
- Python
- スター
- 357
- フォーク
- 118
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-functions-python-worker のほかの issue
-
[Bug] ASGI cookie conversion serializes an absent Domain attribute and breaks __Host- cookies対応中かも @tharun06 が 47 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Azure/azure-functions-python-worker#1902 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
Azure/azure-functions-python-worker#1908 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Azure/azure-functions-python-worker#1906 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Azure/azure-functions-python-worker#1904 ·
メンテナーはふだん 2 日以内に返信
-
[Python 3.14 proxy worker] Missing sys.modules["__main__"] breaks multiprocessing spawn対応中かも @Fire162 が 24 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Azure/azure-functions-python-worker#1903 ·
メンテナーはふだん 2 日以内に返信
Azure/azure-functions-python-worker の issue をすべて見る
似ている issue
-
ChatBedrockConverse changes the keys of JSON tool results to camelCase (`order_id` becomes `orderId`)対応中かも @geyazheng が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
langchain-ai/langchain-aws#1469 ·
メンテナーはふだん 1 日以内に返信
-
GCToggler leaves collection enabled if the body re-enables it対応中かも @Gambit-Checkmate が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 7 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
doronz88/pymobiledevice3#2176 ·
メンテナーはふだん 1 日以内に返信
-
b4b usability
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信