collect_info.py does not start: pkg_resources is gone from setuptools 82
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 85/100
調査の方向性
scripts/collect_info.py から始め、特にモジュールレベルの import と REQUIRED パッケージリストを確認します。setuptools が提供する pkg_resources がなく、wheel と cython もない環境で cd scripts 66 python collect_info.py all を実行します。スクリプトがシステム、Python、パッケージの詳細を出力し、0 で終了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
🐛 Bug Description
scripts/collect_info.py aborts on its first import. This is the script the
bug report template points users to for their environment details.
Two causes, one behind the other, both in the same file:
| cause | effect | |
|---|---|---|
| 1 | import pkg_resources at module level |
ModuleNotFoundError, the script never starts |
| 2 | REQUIRED lists wheel and cython |
DistributionNotFound, the script dies part way through its output |
The second one only becomes visible once the first is fixed. wheel and
cython sit in build-system.requires, not in dependencies, so a plain
pip install pyqlib does not have them.
To Reproduce
- Install qlib in an environment with setuptools 82 or newer. Since Python
3.12python -m venvno longer seeds setuptools at all, sopkg_resources
can be missing regardless of any version boundary. cd scripts && python collect_info.py all- Output:
Traceback (most recent call last):
File "scripts/collect_info.py", line 5, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Measured boundary, one throwaway venv per version, nothing else changed:
| setuptools | ships pkg_resources |
|---|---|
| 80.9.0 | yes |
| 81.0.0 | yes, with a deprecation warning |
| 82.0.0 | no |
Expected Behavior
collect_info.py all prints the system, Python and package details and exits
with 0, including when a package from its list is not installed.
Environment
Collected by hand, since the script itself does not run:
- Qlib version: 0.9.8.dev34 (editable install)
- Python version: 3.12.13
- OS: MacOS 26.6.2, arm64
- Commit number: be725493eb1a6bbb42bf11b37aa7669f59610ff1
- setuptools 84.0.0
Additional Notes
#1947 covers the same line, but from June 2025, when it was still a
UserWarning with a different traceback behind it. Today the script does not
start at all.
- 主要言語
- Python
- スター
- 49.9k
- フォーク
- 7.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/qlib のほかの issue
-
StructuredCovEstimator crashes for one factor and uses inconsistent residual variance対応中かも @Divyansh151005 が 18 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/qlib#2377 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
IdxMax and IdxMin return the position of NaN instead of the extreme value対応中かも @bozarnr が 43 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/qlib#2352 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug: Rsquare(N=0) expanding path leaks inf/garbage on near-constant windows (rolling path is guarded)対応中かも @DogInfantry が 119 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/qlib#2297 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
TopkDropoutStrategy ignores get_risk_degree() for position sizing対応中かも @zhaow-de が 137 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/qlib#2276 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
microsoft/qlib#2198 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
githubnext/gh-aw-workshop#5367 ·
メンテナーはふだん 3 日以内に返信
-
OAuth documentation for GET /api/v2/users/me/ appears inconsistent with required global read scopeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Create Noise Latents ignores randomize_seed and produces the same noise every run対応中かも @griptapeops が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
griptape-ai/griptape-nodes-library-diffusers#127 ·
メンテナーはふだん 1 日以内に返信
-
Jenkins capacity report: metrics history is lost when archiving a month fails対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
adoptium/infrastructure#4568 ·
メンテナーはふだん 1 日以内に返信