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/04 12:07:34 UTC

[GitHub] JulieRossi opened a new issue #4934: flask-cache is unmaintained and raises an ImportError

JulieRossi opened a new issue #4934: flask-cache is unmaintained and raises an ImportError
URL: https://github.com/apache/incubator-superset/issues/4934
 
 
   Hello !
   I recently got an import error when init superset (see Traceback).
   I think the problem comes from the Flask-Cache library so I was thinking I should right an issue to them but the lib is not maintained anymore (https://github.com/thadeusb/flask-cache/issues/167).
   
   They say we should use Flask-Caching (https://github.com/sh4nks/flask-caching) instead.
   
   Would you consider changing the library ?
   
   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.20.4 and 0.24.0 tested
   
   ### Expected results
   Should not raise any error
   
   ### Actual results
   An error is raised on init superset : 
   ```
   Traceback (most recent call last):
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 578, in spawn_worker
       worker.init_process()
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 126, in init_process
       self.load_wsgi()
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 135, in load_wsgi
       self.wsgi = self.app.wsgi()
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
       self.callable = self.load()
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
       return self.load_wsgiapp()
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
       return util.import_app(self.app_uri)
     File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 352, in import_app
       __import__(module)
     File "/usr/local/lib/python3.5/dist-packages/superset/__init__.py", line 92, in <module>
       cache = utils.setup_cache(app, conf.get('CACHE_CONFIG'))
     File "/usr/local/lib/python3.5/dist-packages/superset/utils.py", line 625, in setup_cache
       return Cache(app, config=cache_config)
     File "/usr/local/lib/python3.5/dist-packages/flask_cache/__init__.py", line 121, in __init__
       self.init_app(app, config)
     File "/usr/local/lib/python3.5/dist-packages/flask_cache/__init__.py", line 156, in init_app
       from .jinja2ext import CacheExtension, JINJA_CACHE_ATTR_NAME
     File "/usr/local/lib/python3.5/dist-packages/flask_cache/jinja2ext.py", line 33, in <module>
       from flask.ext.cache import make_template_fragment_key
   ImportError: No module named 'flask.ext'
   ```
   
   ### Steps to reproduce
   
   
   

----------------------------------------------------------------
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