python - 'NoneType' object has no attribute 'kill_cursors' when nltk is imported -


if use pymongo cursor , have nltk package imported, error. i'm not sure if bug, or if can fix somehow:

exception ignored in: <bound method cursor.__del__ of <pymongo.cursor.cursor object @ 0x054d0210>> traceback (most recent call last):   file "c:\python34\lib\site-packages\pymongo-3.0.2-py3.4-win32.egg\pymongo\cursor.py", line 211, in __del__   file "c:\python34\lib\site-packages\pymongo-3.0.2-py3.4-win32.egg\pymongo\cursor.py", line 271, in __die   file "c:\python34\lib\site-packages\pymongo-3.0.2-py3.4-win32.egg\pymongo\mongo_client.py", line 833, in close_cursor   file "c:\python34\lib\site-packages\pymongo-3.0.2-py3.4-win32.egg\pymongo\cursor_manager.py", line 56, in close attributeerror: 'nonetype' object has no attribute 'kill_cursors' 

i'm using python 3.4, pymongo 3.0.2, , nltk 3.0.2.

here simple script can use reproduce error:

from pymongo import mongoclient import nltk  client = mongoclient() db = client.test coll = db.restaurants  curs = coll.find() curs.next() 

any appreciated!

thanks

edit: error occurs only when nltk imported. if comment import nltk line out, error not occur.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -