...
/Users/Vic/projects/brain2/brain/utils/user_progress.py:686: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
for action in actions:
/Users/Vic/projects/brain2/brain/utils/user_course_state.py:317: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
PlayedTask(
/Users/Vic/projects/brain2/venv/lib/python3.6/site-packages/mongoengine/dereference.py:33: DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
...
I also have this problem when looping over a queryset.
for u in User.objects(name='John'):
...
DeprecationWarning: generator 'QuerySet._iter_results' raised StopIteration
Hey guys. I'm seeing this warning in my app as well. Basically I'm doing something like:
results = Entity.objects().order_by('-display_order')
return list(results)
Some way to fix this? AFAIK, I'm running the latest mongoegine on PyPI.
I think you don't need to. Just wait until the next release.
@mikeckennedy Nice podcast. Big fan.
Thank you @GNHua I appreciate the kind words on the podcast and feedback. My favorite way to fix my software is to simply wait around. ;)
Oh, BTW, one of the sites I had in mind when I commented here was https://talkpython.fm -- mongoengine is powering that one. Been a joy to work with.
Any update on this?
the issue still there with mongoengine 0.15.0
This issue is a blocker on Python 3.7. Probably best to release ASAP.
Most helpful comment
This issue is a blocker on Python 3.7. Probably best to release ASAP.