Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-16

AttributeError: type object 'MongoClient' has no attribute '_ensure_connected'

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.2
    • Affects Version/s: 0.2
    • Component/s: None
    • Labels:
      None

      I installed the version on github using "pip install git+https://github.com/mongodb/motor.git".But when I "import motor" it raise an error.
      "
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/lib/python2.7/site-packages/motor/_init_.py", line 1020, in <module>
      class MotorClient(MotorClientBase):
      File "/usr/local/lib/python2.7/site-packages/motor/_init.py", line 850, in __new_
      new_class_attr = attr.create_attribute(new_class, name)
      File "/usr/local/lib/python2.7/site-packages/motor/_init_.py", line 676, in create_attribute
      method = getattr(cls._delegate_class_, name)
      AttributeError: type object 'MongoClient' has no attribute '_ensure_connected'
      "

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            billyellow Billy Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: