The Docker image leaves out bngsim for a reason that no longer holds, so it cannot run 89 of the 97 tutorial configs

オープン
#1,032 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, python
領域
build-system

調査の方向性

Read the Dockerfile and .github/workflows/docker.yml to trace the image install steps and CI job name; check pyproject.toml and tests/test_packaging_metadata.py for dependency metadata expectations. Build the image and try a tutorial config that uses bngsim, such as examples/tutorial/36_estimate_noise/estimated_sigma.conf. Done means the image can run those configs and the Docker header and CI job name describe the updated image.

索引モデルが issue の本文から書いたものです。

説明

bug

The Dockerfile builds what it calls a legacy BNG2.pl image. Its header explains why it does not install bngsim, PyBNF's default simulation backend:

bngsim is a private, macOS-only wheel with no public Linux build, so it cannot
be installed in a Linux container today (issue #414). [...] When bngsim ships
public Linux wheels, a bngsim-backed image can replace this one.

That condition is met. bngsim 0.17.0 is on PyPI with manylinux_2_28_x86_64 wheels for CPython 3.10 to 3.13, and the CI action installs it on Ubuntu runners for every test leg. The image is built with Python 3.13, which those wheels cover.

Without bngsim, PyBNF refuses any config that sets bngl_backend = bngsim, and 89 of the 97 configs under examples/tutorial/ do. To see the refusal outside Docker, with PYBNF_NO_BNGSIM=1 standing in for the missing package:

cd examples/tutorial/36_estimate_noise
PYBNF_NO_BNGSIM=1 pybnf -c estimated_sigma.conf

Error: bngl_backend = bngsim was requested for model decay, but PYBNF_NO_BNGSIM is set.

In the image, where bngsim is simply absent, the same configs are refused the same way. The image also installs PyBNF with --no-deps, so it ships without a dependency that pyproject.toml declares as required.

Suggested change: install bngsim in the image, as its header proposes, and update the header and the CI job name (docker build (legacy BNG2.pl image) in .github/workflows/docker.yml). The pip install --no-deps step could then let pip resolve PyBNF's own dependencies from the wheel, and the hand-written dependency list in the Dockerfile could go. tests/test_packaging_metadata.py currently checks that list against pyproject.toml.

主要言語
Python
スター
25
フォーク
25
平均マージ
4時間 5分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lanl/PyBNF のほかの issue

lanl/PyBNF の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。