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

Đang mở
#1,032 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, python
Lĩnh vực
build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
25
Fork
25
Merge trung bình
4 giờ 5 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lanl/PyBNF

Tất cả issue của lanl/PyBNF

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.