pallets-eco / flask-debugtoolbar

A toolbar overlay for debugging Flask applications
https://flask-debugtoolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
953 stars 146 forks source link

ImportError: cannot import name DebugToolbarExtension #92

Closed ohadperry closed 8 years ago

ohadperry commented 8 years ago
pip install flask-debugtoolbar
Requirement already satisfied (use --upgrade to upgrade): flask-debugtoolbar in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): Flask>=0.8 in /usr/local/lib/python2.7/dist-packages (from flask-debugtoolbar)
Requirement already satisfied (use --upgrade to upgrade): Blinker in /usr/local/lib/python2.7/dist-packages (from flask-debugtoolbar)
Requirement already satisfied (use --upgrade to upgrade): itsdangerous in /usr/local/lib/python2.7/dist-packages (from flask-debugtoolbar)
Requirement already satisfied (use --upgrade to upgrade): werkzeug in /usr/local/lib/python2.7/dist-packages (from flask-debugtoolbar)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.8->flask-debugtoolbar)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/local/lib/python2.7/dist-packages (from Jinja2>=2.4->Flask>=0.8->flask-debugtoolbar)
$ python
>>> from flask_debugtoolbar import DebugToolbarExtension
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name DebugToolbarExtension
  1. works on localhost (mac) but not on production server
  2. tried pip uninstall and reinstalling again

@mgood please help

jeffwidman commented 8 years ago

I can't reproduce this, closing as it's most likely something wrong with your prod server. If you're still having issues, please report the distro, python version, etc