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:
from execnb.nbio import read_nb, NbCell
Affected: Any project using answerdotai/workflows/quarto-ghp@master as of execnb 0.2.0 release.
Reproduction
steps: [uses: answerdotai/workflows/quarto-ghp@master]
Output:
File ".../nbdev/config.py", line 20, in <module>
from execnb.nbio import read_nb,NbCell
ModuleNotFoundError: No module named 'execnb.nbio'
Fix
Either:
- Pin
execnb<0.2 in the action's install step alongside nbdev<3
- 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:
jobs:
gh_pages:
env:
PIP_CONSTRAINT: constraints.txt # contains: execnb<0.2
steps: [uses: answerdotai/workflows/quarto-ghp@master]
Problem
quarto-ghp@mastercurrently fails with:Root cause: The action runs
pip install -Uq "nbdev<3", which pulls in the latestexecnb(currently0.2.1).execnb 0.2.0removed theexecnb.nbiosubmodule, butnbdev 2.xstill imports it innbdev/config.py:Affected: Any project using
answerdotai/workflows/quarto-ghp@masteras of execnb 0.2.0 release.Reproduction
Output:
Fix
Either:
execnb<0.2in the action's install step alongsidenbdev<3quarto-ghpto usenbdev>=3(which uses the newexecnbAPI)Workaround
Projects can work around this today by setting
PIP_CONSTRAINTat the job level to aconstraints.txtthat containsexecnb<0.2: