Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad import in flash_cache/jinja2ext.py #2829

Closed
JAdata opened this issue Jun 15, 2018 · 1 comment
Closed

Bad import in flash_cache/jinja2ext.py #2829

JAdata opened this issue Jun 15, 2018 · 1 comment

Comments

@JAdata
Copy link

JAdata commented Jun 15, 2018

This issue tracker is a tool to address bugs in Flask itself.
Please use the #pocoo IRC channel on freenode or Stack Overflow for general
questions about using Flask or issues not related to Flask.

If you'd like to report a bug in Flask, fill out the template below. Provide
any any extra information that may be useful / related to your problem.
Ideally, create an MCVE, which helps us
understand the problem and helps check that it is not caused by something in
your code.


Expected Behavior

There is an "old type" import statement in flask_cache/jinja2ext.py

import flask_cache.jinja2ext

Actual Behavior

jinja2ext.py does "from flask.ext.cache import make_template_fragment_key" which is referring to
an old module structure - flask.ext.cache has moved to flask_cache, hasn't it?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jensand/ve_unpin/local/lib/python2.7/site-packages/flask_cache/jinja2ext.py", line 33, in <module>
    from flask.ext.cache import make_template_fragment_key
ImportError: No module named ext.cache

Environment

  • Python version: 2.7.12
  • Flask version: 1.0.2
  • Flask-Cache: 0.13.1
  • Werkzeug version: 0.14.1
@RonnyPfannschmidt
Copy link
Contributor

thadeusb/flask-cache#156

please report to the correct projects

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants