Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upImportError: No module named 'flask.exthook' #5006
Closed
Comments
This comment has been minimized.
This comment has been minimized.
Dup of #4953, please close |
This comment has been minimized.
This comment has been minimized.
Indeed, it mentions the same issue but the discussion says the exthook ImportError is fixed in superset v0.25.1 by forcing flask<1.0 (#4953 (comment)) but actually, in superset v0.25.1, the setup forces flask<=1.0, hence the version 1.0 in installed. |
This comment has been minimized.
This comment has been minimized.
You should probably open a PR fixing the issue :) |
This comment has been minimized.
This comment has been minimized.
Ooops, my bad, fixing in 0.25.4 (pushing this out now) |
This comment has been minimized.
This comment has been minimized.
Thanks !! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello !
I ran into an error while running
superset db upgrade
:For what I can see, superset uses (or can use) flask==1.0 (
https://github.com/apache/incubator-superset/blob/master/setup.py#L58
) that no longer has aexthook
module (https://github.com/pallets/flask/releases/tag/1.0).This causes a ImportError on superset here : https://github.com/apache/incubator-superset/blob/master/superset/bin/superset#L9
When I install flask==0.12.2 before I install superset I no longer have the Error.
Maybe
flask<1.0.0
would work better? Or do you think I may be doing something wrong ?Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.25.2
Expected results
There should be no error
Actual results
ImportError is raised
Steps to reproduce
pip install superset==0.25.2
(by the way, at this point we get a warning
flask-appbuilder 1.10.0 has requirement Flask<0.12.99,>=0.12.1, but you'll have flask 1.0 which is incompatible.
)pip freeze