renanpalmeira / flask-blog

Blog in Flask, template inspired by ghost (https://ghost.org/)
3 stars 3 forks source link

ImportError Cursor #3

Open ghost opened 8 years ago

ghost commented 8 years ago

i'm getting below error msg when run command --- python manage_flask.py db init

$ python manage_flask.py db init Traceback (most recent call last): File "manage_flask.py", line 3, in import server File "G:\blog\flask-blog\server.py", line 5, in from core.db import db, MongoDB_Connection, MongoDB_Models File "G:\blog\flask-blog\core\db.py", line 3, in from mongokit import Connection, MongoClient File "C:\Python34\lib\site-packages\mongokitinit.py", line 31, in from cursor import Cursor ImportError: cannot import name 'Cursor'

before get this error i got cannot find module cursor but after install pip install cursor i'm getting this error. I'm a beginner to python and flask. Appreciate if you can give complete install guide with database setting change.

renanpalmeira commented 8 years ago

Hi guy, first error maybe you don't have the MongoDB installed in your environment, but forget this because this project i not use anymore, you used Python 3.X and I wrote this project in Python 2.7 when i was learning to use Flask, today i use Flask just in API's, see the project has neither TDD :sweat:, the last commit was 24 Feb 2015, I recommend this examples and websites for your first project Flask, see:

Anyway i support this project in Python 3 today :v: https://github.com/RenanPalmeira/flask-blog/tree/python3

(Sorry if you not understood my english)

AhmedAKhan commented 7 years ago

was getting the same error, it looks like the error is because mongokit is dead, it does not support the newest version of pymongo 3 which automatically gets pulled down, thus giving the error

https://github.com/namlook/mongokit/issues/182 https://github.com/namlook/mongokit/issues/251