python-fasthtml dependency pulls in SQLite C bindings, breaking installs on some platforms
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- jupyter-notebook, python
- Ambito
- build-system
Direzione di ricerca
Inizia dalla configurazione delle dipendenze usata da Poetry e dall’implementazione esistente di f-string in core.py; traccia il modo in cui python-fasthtml introduce la catena apsw. Il lavoro è concluso quando le piattaforme interessate possono installare fastprogress senza la dipendenza SQLite C che fallisce e il rendering dell’avanzamento in Jupyter continua a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Jupyter Notebook
- Stelle
- 1.1k
- Fork
- 103
- Merge medio
- 1m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AnswerDotAI/fastprogress
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
AnswerDotAI/fastprogress#121 · 2 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
AnswerDotAI/fastprogress#117 · 4 commenti · 12 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
AnswerDotAI/fastprogress#111 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
AnswerDotAI/fastprogress#107 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
AnswerDotAI/fastprogress#106 ·
Tutte le issue di AnswerDotAI/fastprogress
Issue simili
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
bug github_actions
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
registrystack/registry-stack#1393 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100