python-inspector failes with resolvelib.resolvers.exceptions.ResolutionImpossible
まだ誰も着手していません。
評価
調査の方向性
まず、poetry.lock から生成された添付の requirements.txt を使い、Python 3.11.10 で python-inspector 0.14.0 を再現します。次に、traceback に示されている依存関係解決のエントリポイントである resolve_cli.py を調査します。onnxruntime==1.21.1 と、その Python 3.10–3.12 用マーカーの処理を確認します。有効な Poetry export が ResolutionImpossible なしで分析を完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Error:
python-inspector fails during analyse of requirement.txt generated with poetry export from a valid poetry.lock file
Using ort analyse with
ORT docker image 61.1.0
PYTHON_VERSION=3.11.10
PYTHON_POETRY_VERSION=2.0.1
PYTHON_INSPECTOR_VERSION=0.14.0
the python-inspector fails with
java.io.IOException: Running 'python-inspector --python-version 311 --operating-system linux --json-pdt /tmp/ort-PythonInspector13710381662136651418/python-inspector6283273422756952523.json --analyze-setup-py-insecurely --requirement /tmp/ort-Poetry12499612839497264533/requirements.txt14705584514466321039.tmp --verbose' in '/tmp/ort-Poetry12499612839497264533' failed with exit code 1:
Traceback (most recent call last):
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 388, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 142, in _add_to_criteria
raise RequirementsConflicted(criterion)
resolvelib.resolvers.exceptions.RequirementsConflicted: Requirements conflict: <Requirement('onnxruntime==1.21.1; python_version >= "3.10" and python_version < "3.13"')>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/python_inspector/resolve_cli.py", line 253, in resolve_dependencies
resolution_result: Dict = resolver_api(
^^^^^^^^^^^^^
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/python_inspector/api.py", line 279, in resolve_dependencies
resolution, purls = resolve(
^^^^^^^^
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/python_inspector/api.py", line 341, in resolve
resolved_dependencies, packages = get_resolved_dependencies(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/python_inspector/api.py", line 379, in get_resolved_dependencies
resolver_results = resolver.resolve(requirements=requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 515, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/python/versions/3.11.10/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 390, in resolve
raise ResolutionImpossible(e.criterion.information) from e
resolvelib.resolvers.exceptions.ResolutionImpossible: [RequirementInformation(requirement=<Requirement('onnxruntime==1.21.1; python_version >= "3.10" and python_version < "3.13"')>, parent=None)]
requirement.txt generate with "poetry export --without-hashes --format=requirements.txt --only=main" from attached poetry.lock
- 主要言語
- Python
- スター
- 23
- フォーク
- 29
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/python-inspector のほかの issue
-
難易度 3/5 半日 初心者へのやさしさ 62/100
aboutcode-org/python-inspector#268 · コメント 1 件 ·
-
Add support for pylock.toml対応中かも @Anurag-S1ngh が 4 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aboutcode-org/python-inspector#259 · コメント 1 件 ·
-
InconsistentCandidate: Pre-Release not allow対応中かも @Anurag-S1ngh が 4 日前に担当しました。 オープンbug design nice-to-have
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aboutcode-org/python-inspector#257 · コメント 1 件 ·
-
Feature request: Mask repository credentials in --verbose output対応中かも @Rajeshwari2857 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
aboutcode-org/python-inspector#254 · コメント 4 件 · リアクション 4 件 ·
-
Python Inspector version 0.15.0 contains the wrong version string対応中かも @Anurag-S1ngh が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
aboutcode-org/python-inspector#253 · コメント 1 件 ·
aboutcode-org/python-inspector の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ComposioHQ/awesome-claude-skills#2398 ·
メンテナーはふだん 2 日以内に返信
-
bug converter
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
grafana/sigma-rule-deployment#435 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
datamodel-code-generator/datamodel-code-generator#5589 ·
メンテナーはふだん 1 日以内に返信
-
Shell: serve the home app's Cookie Policy on a hard reload対応中かも @2001anshkaushik が今日担当しました。 オープンfeature module:ai
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
rocketride-org/rocketride-server#2899 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
GEFSv12
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100