getappmap / getappmap/appmap-python
Error generating maps for the FlaskBB project
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 104
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Following the instructions on https://github.com/flaskbb/flaskbb/ and on https://github.com/flaskbb/flaskbb/blob/master/CONTRIBUTING.md, I get the FlaskBB system set up. Running py.test shows all tests passing 100% clean. Then Installed appmap agent, which went fine.
Then when I re-ran the tests with APPMAP=true, it failed with:
<snip>
File "/Users/brikelly/.pyenv/versions/3.10.4/lib/python3.10/site-packages/appmap/flask.py", line 146, in <module>
flask.cli.call_factory = wrap_cli_fn(flask.cli.call_factory)
AttributeError: module 'flask.cli' has no attribute 'call_factory'
I am using Python 3.10.4 and verified the same issue with 3.9.12 too.
I was able to get past the error by pinning the app to use an older version of Flask (2.0.1), but a variety of the tests still failed.
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.
Direzione di ricerca
Inizia seguendo CONTRIBUTING.md, esegui la suite di test che passa e rieseguila con APPMAP=true su Python 3.9 o 3.10. Esamina il traceback in appmap/flask.py:146 e confronta la versione installata di Flask con l'integrazione Flask dell'agent; il lavoro è completato quando l'esecuzione strumentata dei test non genera più questo errore e i relativi test passano.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- flask, python
- Ambito
- backend, devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100