quarto-ghp: execnb 0.2 breaks nbdev<3 — `ModuleNotFoundError: No module named 'execnb.nbio'`
还没有人认领这个 Issue。
评估
调研方向
首先找到运行 pip install -Uq "nbdev<3" 的 quarto-ghp action 安装步骤,然后使用当前的依赖版本复现所提供的 workflow。更新依赖处理方式,使该 action 不再引发 ModuleNotFoundError: No module named 'execnb.nbio',并验证 workflow 是否成功完成。
由索引模型根据 Issue 内容生成。
描述
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.2in the action's install step alongsidenbdev<3 - Migrate
quarto-ghpto usenbdev>=3(which uses the newexecnbAPI)
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]
- 主要语言
- Python
- 星标
- 44
- 派生
- 40
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AnswerDotAI/workflows 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
AnswerDotAI/workflows#78 ·
-
难度 4/5 3-5 天 新手友好度 38/100
AnswerDotAI/workflows#64 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
AnswerDotAI/workflows#62 ·
查看 AnswerDotAI/workflows 的全部 Issue
相似的 Issue
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
hatchet-dev/hatchet#5179 ·
维护者通常 1 天内回复
-
python-version
难度 1/5 1 小时以内 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug javascript P2-medium python release:v3.1
难度 2/5 1-3 小时 新手友好度 68/100
adrirubio/claude-deck#546 ·
维护者通常 1 天内回复