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

After upgrading to MOTOR 2.2, throws error

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2
    • Component/s: None
    • None
    • Environment:
      Linux

      After updating to MOTOR 2.2, I get this error when trying to build my project with the motor library.

      {{ import motor.motor_asyncio}}
      {{ File "/usr/local/lib/python3.7/site-packages/motor/motor_asyncio.py", line 44, in <module>}}
      {{ core.AgnosticCursor)}}
      {{ File "/usr/local/lib/python3.7/site-packages/motor/motor_asyncio.py", line 26, in create_asyncio_class}}
      {{ 'motor.motor_asyncio')}}
      {{ File "/usr/local/lib/python3.7/site-packages/motor/metaprogramming.py", line 295, in create_class_with_framework}}
      {{ new_class_attr = attr.create_attribute(new_class, name)}}
      {{ File "/usr/local/lib/python3.7/site-packages/motor/metaprogramming.py", line 251, in create_attribute}}
      {{ cursor_method = getattr(cls._delegate_class_, attr_name)}}
      {{ AttributeError: type object 'Cursor' has no attribute 'allow_disk_use'}}

      Downgrading to v2.0 fixes the issue. 

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            09esiegel@gmail.com Ethan Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: