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

Abierto
#1,032 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
docker, python
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
25
Forks
25
Merge medio
4 h 5 min
PR fusionados (30 d)
10

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lanl/PyBNF

Todos los issues de lanl/PyBNF

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.