AnswerDotAI / AnswerDotAI/workflows

quarto-ghp: execnb 0.2 breaks nbdev<3 — `ModuleNotFoundError: No module named 'execnb.nbio'`

Offen
#77 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
44
Forks
40
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Problem

`quarto-ghp@master` currently fails with:

```
ModuleNotFoundError: No module named 'execnb.nbio'
```

**Root cause:** The action runs `pip install -Uq "nbdev<3"`, which pulls in the latest `execnb` (currently `0.2.1`). `execnb 0.2.0` removed the `execnb.nbio` submodule, but `nbdev 2.x` still imports it in `nbdev/config.py`:

```python
from execnb.nbio import read_nb, NbCell
```

**Affected:** Any project using `answerdotai/workflows/quarto-ghp@master` as of execnb 0.2.0 release.

## Reproduction

```yaml
steps: [uses: answerdotai/workflows/quarto-ghp@master]
```

Output:
```
File ".../nbdev/config.py", line 20, in
from execnb.nbio import read_nb,NbCell
ModuleNotFoundError: No module named 'execnb.nbio'
```

## Fix

Either:
1. Pin `execnb<0.2` in the action's install step alongside `nbdev<3`
2. Migrate `quarto-ghp` to use `nbdev>=3` (which uses the new `execnb` API)

## Workaround

Projects can work around this today by setting `PIP_CONSTRAINT` at the job level to a `constraints.txt` that contains `execnb<0.2`:

```yaml
jobs:
gh_pages:
env:
PIP_CONSTRAINT: constraints.txt # contains: execnb<0.2
steps: [uses: answerdotai/workflows/quarto-ghp@master]
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne damit, den Installationsschritt der quarto-ghp action zu finden, der `pip install -Uq "nbdev<3"` ausführt, und reproduziere anschließend den bereitgestellten Workflow mit den aktuellen Abhängigkeitsversionen. Aktualisiere die Abhängigkeitsverwaltung so, dass die action nicht mehr `ModuleNotFoundError: No module named 'execnb.nbio'` auslöst, und überprüfe, dass der Workflow erfolgreich abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github-actions, python
Bereich
ci-cd
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.