python-fasthtml dependency pulls in SQLite C bindings, breaking installs on some platforms
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- jupyter-notebook, python
- 领域
- build-system
调研方向
从 Poetry 使用的依赖配置和 core.py 中现有的 f-string 实现开始;追踪 python-fasthtml 如何引入 apsw 链。完成的标准是,受影响的平台可以在不依赖会失败的 SQLite C 依赖项的情况下安装 fastprogress,同时 Jupyter 进度渲染仍能正常工作。
由索引模型根据 Issue 内容生成。
描述
fastprogress 1.1.0 switched from raw HTML strings to fasthtml FT components for Jupyter rendering. The problem is the transitive dep chain this introduces:
fastprogress -> python-fasthtml -> fastlite -> apswutils -> apsw
apsw is a SQLite C extension that needs pre-built wheels or a compiler. Poetry can't find wheels for some platforms, so poetry install just fails -- which blocks anything that depends on fastprogress (in my case, blackjax -- It seems the blackjax team is also tracking this on their end: https://github.com/blackjax-devs/blackjax/issues/812).
fastprogress only uses 9 tag constructors (Div, Progress, Table, Tr, Td, Th, Thead, Tbody, P) but python-fasthtml also drags in starlette, uvicorn, httpx, oauthlib, beautifulsoup4, etc. That's a lot of weight for a progress bar.
The old f-string approach in core.py still exists and worked fine. Could the fasthtml dep be made optional with a fallback to the f-string versions? Or even just vendor the few FT helpers that are actually needed?
My workaround for this is to pin fastprogress<1.1 in my project.
- 主要语言
- Jupyter Notebook
- 星标
- 1.1k
- 派生
- 103
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AnswerDotAI/fastprogress 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 30/100
AnswerDotAI/fastprogress#121 · 2 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 48/100
AnswerDotAI/fastprogress#117 · 4 条评论 · 12 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
AnswerDotAI/fastprogress#111 ·
-
难度 3/5 1-2 天 新手友好度 35/100
AnswerDotAI/fastprogress#107 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
AnswerDotAI/fastprogress#106 ·
查看 AnswerDotAI/fastprogress 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1 小时以内 新手友好度 72/100
afarber/OpenMapView#22 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
rescript-lang/rescript#8765 ·
维护者通常 1 天内回复
-
upstream update
难度 2/5 1-3 小时 新手友好度 65/100
conan-io/conan-center-index#31142 ·
维护者通常 1 天内回复
-
bot-found documentation priority: P3
难度 2/5 1-3 小时 新手友好度 72/100
madenvel/KalinkaPlayer#313 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复