Closed Mohsen-Khodabakhshi closed 2 years ago
Hi. In MongoDB version 5.0 and newer geoHaystack indexes removed, actually in PyMongo version 4.0 and newer too. Now mongoengine-migrate not working with PyMongo version 4.0 and newer, because in actions/base.py in line 611, you used GEOHAYSTACK. The error is: AttributeError: module 'pymongo' has no attribute 'GEOHAYSTACK' https://docs.mongodb.com/manual/core/geohaystack/ https://pymongo.readthedocs.io/en/4.0/api/pymongo/collection.html
geoHaystack
actions/base.py
GEOHAYSTACK
AttributeError: module 'pymongo' has no attribute 'GEOHAYSTACK'
I fixed this in #49
Hello, sorry for long answer. Looks good, merged. Thanks
Hi. In MongoDB version 5.0 and newer
geoHaystack
indexes removed, actually in PyMongo version 4.0 and newer too. Now mongoengine-migrate not working with PyMongo version 4.0 and newer, because inactions/base.py
in line 611, you usedGEOHAYSTACK
. The error is:AttributeError: module 'pymongo' has no attribute 'GEOHAYSTACK'
https://docs.mongodb.com/manual/core/geohaystack/ https://pymongo.readthedocs.io/en/4.0/api/pymongo/collection.html