Python Motor connecting error to mongodb.

94 views
Skip to first unread message

VP

unread,
Mar 30, 2018, 5:30:11 PM3/30/18
to mongodb-user
Hi,

I am using 
python 2.7.12
pymongo 3.6.1
tornado 5.0.1


I install the packages
and for checking the installation I used
import motor.motor_tornado
doing so I am getting the error as
'module' object has no attribute 'MongoClient'

please help me out. What is wrong. 

A. Jesse Jiryu Davis

unread,
Mar 30, 2018, 9:54:55 PM3/30/18
to mongodb-user
Motor offers a MotorClient class, not a MongoClient. As it says in the tutorial, the first step is:

client = motor.motor_tornado.MotorClient()
Message has been deleted

VP

unread,
Apr 1, 2018, 8:43:01 AM4/1/18
to mongodb-user
Hi,
Thanks for the reply,

There is a typo in the post 
 'module' object has no attribute 'MongoClient'
 
Actual error I am getting is as
ImportError: No module named motor_tornado 
Reply all
Reply to author
Forward
0 new messages