I'm getting the error AttributeError: 'FastAPI' object has no attribute 'after_request' whether I run python main.py or python gui.py.
AttributeError: 'FastAPI' object has no attribute 'after_request'
python main.py
python gui.py
I have flaskwebgui, flask and fastapi installed ok.
Had to change the startup in both files to FlaskUI(app, start_server='fastapi', width=600, height=500).run()
FlaskUI(app, start_server='fastapi', width=600, height=500).run()
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm getting the error
AttributeError: 'FastAPI' object has no attribute 'after_request'
whether I runpython main.py
orpython gui.py
.I have flaskwebgui, flask and fastapi installed ok.
Had to change the startup in both files to
FlaskUI(app, start_server='fastapi', width=600, height=500).run()