-
Type: Task
-
Resolution: Works as Designed
-
Priority: 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.
- is caused by
-
MOTOR-594 Update PyMongo dependency to 3.11.0
- Closed