thadeusb / flask-cache

Cache extension for Flask
http://packages.python.org/Flask-Cache/
Other
700 stars 185 forks source link

report warning/error when run flask-cache #171

Closed wanghaiqing2015 closed 7 years ago

wanghaiqing2015 commented 7 years ago

c:\python27\lib\site-packages\flask_cache\jinja2ext.py:33: ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use flask_cache instead.

=============================================== report error when use pyinstaller to freeze flask project

C:\Users\root\Desktop\flask-aim-angle\flask_aim\dist\master>master.exe Traceback (most recent call last): File "flask-aim-angle\flask_aim\master.py", line 12, in File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.dict) File "flask-aim-angle\flask_aim\app.py", line 21, in File "site-packages\flask_cache__init.py", line 121, in init File "site-packages\flask_cache__init__.py", line 156, in init_app File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module exec(bytecode, module.dict__) File "site-packages\flask_cache\jinja2ext.py", line 33, in ImportError: No module named ext.cache Failed to execute script master

wanghaiqing2015 commented 7 years ago

use flask-caching now

https://flask-caching.readthedocs.io/en/latest/

https://github.com/thadeusb/flask-cache/issues/156