flask-cache icon indicating copy to clipboard operation
flask-cache copied to clipboard

fix "No module named 'flask.ext'" in Python3.6

Open nuaays opened this issue 6 years ago • 4 comments

Traceback (most recent call last): File "/manage.py", line 5, in from gBlockChain import app File "/gBlockChain/init.py", line 116, in register_extensions(app) File "/gBlockChain/utils.py", line 39, in __deco f(*args, **kwargs) File "/gBlockChain/init.py", line 32, in register_extensions getattr(kw['module'].extension, 'init_app')(app) File "/gBlockChain/extensions/redis.py", line 16, in init_app super(NewCache, self).init_app(app, config_cache) File "/usr/local/lib/python3.6/site-packages/flask_cache/init.py", line 156, in init_app from .jinja2ext import CacheExtension, JINJA_CACHE_ATTR_NAME File "/usr/local/lib/python3.6/site-packages/flask_cache/jinja2ext.py", line 33, in from flask.ext.cache import make_template_fragment_key ModuleNotFoundError: No module named 'flask.ext'

nuaays avatar May 10 '18 03:05 nuaays

Duplicate of #139.

alanhamlett avatar May 16 '18 21:05 alanhamlett

I am getting this error using Misaka plugin. Will this be updated soon?

emb03 avatar May 25 '18 16:05 emb03

Switch to Flask-Caching: https://github.com/sh4nks/flask-caching

alanhamlett avatar May 25 '18 17:05 alanhamlett

am getting an error but am working on a different project,,,,how can i go about please.am in python 3.6

felexkemboi avatar Nov 03 '18 14:11 felexkemboi