python - can't find flask.ext.pagedown module with flask -


i trying set sample code flask+python on machine, following website below

http://blog.miguelgrinberg.com/post/flask-pagedown-markdown-editor-extension-for-flask-wtf

however have problem below.

from flask.ext.pagedown import pagedown   traceback (most recent call last):   file "/users/imacbin/documents/projects/flask/flasky/manage.py", line 3, in <module>     app import create_app, db   file "/users/imacbin/documents/projects/flask/flasky/app/__init__.py", line 7, in <module>     flask.ext.pagedown import pagedown   file "/library/python/2.7/site-packages/flask-0.10.1-py2.7.egg/flask/exthook.py", line 87, in load_module     raise importerror('no module named %s' % fullname) importerror: no module named flask.ext.pagedown 

i did install flask-pagedown, markdown , bleach using pip on machine.

(venv) $ pip install flask-pagedown markdown bleach 

i did search online , noticed flask.ext might stale, tried

from flask_pagedown import pagedown 

but has same issue, 'no module named flask_pagedown'

fyi, python version 2.7.6. ide using pycharm.

could advise else can check?

i cant tell problem is, works in end @ least..

(env)➜ ocmg-py-frontend git:(master) ✗ pip install flask-pagedown collecting flask-pagedown   downloading https://devpi.ocx.dk/root/pypi/+f/73a/4fb383fcd4e1f/flask-pagedown-0.1.5.tar.gz requirement satisfied (use --upgrade upgrade): flask in ./env/lib/python2.7/site-packages (from flask-pagedown) collecting wtforms (from flask-pagedown)   downloading https://devpi.ocx.dk/root/pypi/+f/364/4164ce003ef52/wtforms-2.0.2-py27-none-any.whl (128kb)     100% |################################| 131kb 2.0mb/s requirement satisfied (use --upgrade upgrade): werkzeug>=0.7 in ./env/lib/python2.7/site-packages (from flask->flask-pagedown) requirement satisfied (use --upgrade upgrade): jinja2>=2.4 in ./env/lib/python2.7/site-packages (from flask->flask-pagedown) requirement satisfied (use --upgrade upgrade): itsdangerous>=0.21 in ./env/lib/python2.7/site-packages (from flask->flask-pagedown) requirement satisfied (use --upgrade upgrade): markupsafe in ./env/lib/python2.7/site-packages (from jinja2>=2.4->flask->flask-pagedown) installing collected packages: wtforms, flask-pagedown    running setup.py install flask-pagedown installed wtforms-2.0.2 flask-pagedown-0.1.5 (env)➜ ocmg-py-frontend git:(master) ✗ python python 2.7.9 (default, jan  7 2015, 11:49:12) [gcc 4.2.1 compatible apple llvm 6.0 (clang-600.0.56)] on darwin type "help", "copyright", "credits" or "license" more information. >>> flask.ext.pagedown import pagedown >>> 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -