-
Notifications
You must be signed in to change notification settings - Fork 6.7k
A query object has no cursor #643
Copy link
Copy link
Closed
Description
In which file did you encounter the issue?
Did you change the file? If so, how?
We get the cursor from the following line: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L105 So I changed the file to use that.
Describe the issue
Returns the following error: 'Query' object has no attribute 'cursor'
'Query' object has no attribute 'cursor' Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1535, in __call__ rv = self.handle_exception(request, response, e) File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1529, in __call__ rv = self.router.dispatch(request, response) File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1278, in default_dispatcher return route.handler_adapter(request, response) File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1102, in __call__ return handler.dispatch() File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 572, in dispatch return self.handle_exception(e, self.app.debug) File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 570, in dispatch return method(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/google/appengine/ext/deferred/deferred.py", line 310, in post self.run_from_request() File "/usr/local/lib/python2.7/dist-packages/google/appengine/ext/deferred/deferred.py", line 305, in run_from_request run(self.request.body) File "/usr/local/lib/python2.7/dist-packages/google/appengine/ext/deferred/deferred.py", line 147, in run return func(*args, **kwds) File "/home/vmagent/app/views/update_schema.py", line 50, in update_schema_task update_schema_task, cursor=query.cursor(), num_updated=num_updated) AttributeError: 'Query' object has no attribute 'cursor'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels