You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/05/15 15:26:42 UTC
[GitHub] JulieRossi opened a new issue #5006: ImportError: No module named
'flask.exthook'
JulieRossi opened a new issue #5006: ImportError: No module named 'flask.exthook'
URL: https://github.com/apache/incubator-superset/issues/5006
Hello !
I ran into an error while running `superset db upgrade` :
```
File "/usr/local/bin/superset", line 9, in <module>
from flask.exthook import ExtDeprecationWarning
ImportError: No module named 'flask.exthook'
```
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 a `exthook` 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!
- [x] I have checked the superset logs for python stacktraces and included it here as text if any
- [x] I have reproduced the issue with at least the latest released version of superset
- [x] I have checked the issue tracker for the same issue and I haven't found one similar
### 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`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org