ImportError: No module named flask_pager
Closed this issue · 2 comments
$ grano db upgrade head
File "/opt/grano/env/bin/grano", line 9, in
load_entry_point('grano==0.4.5', 'console_scripts', 'grano')()
File "/opt/grano/env/local/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/grano/env/local/lib/python2.7/site-packages/pkg_resources.py", line 2431, in load_entry_point
return ep.load()
File "/opt/grano/env/local/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
['name'])
File "/opt/grano/grano/manage.py", line 6, in
from grano.views import app
File "/opt/grano/grano/views/init.py", line 11, in
from grano.views.entities_api import blueprint as entities_api
File "/opt/grano/grano/views/entities_api.py", line 2, in
from flask_pager import Pager
ImportError: No module named flask_pager
$ pip install Flask-Pager
Requirement already satisfied (use --upgrade to upgrade): Flask-Pager in ./env/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): Flask in ./env/lib/python2.7/site-packages (from Flask-Pager)
Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in ./env/lib/python2.7/site-packages (from Flask->Flask-Pager)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in ./env/lib/python2.7/site-packages (from Flask->Flask-Pager)
Requirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in ./env/lib/python2.7/site-packages (from Flask->Flask-Pager)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in ./env/lib/python2.7/site-packages (from Jinja2>=2.4->Flask->Flask-Pager)
Urgh, I'm obviously having trouble packaging https://github.com/pudo/flask-pager. Not entirely sure what I'm doing wrong there. As a workaround until I get this fixed, it works to check out the github repo and run python setup.py develop
in it.
Will look into it now.
Cheers for all your awesome work on this project. 👍