-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.triage meI really want to be triaged.I really want to be triaged.
Description
When I try and delete an entity with the following code:
entities = dataset.query().kind('request').fetch()
for entity in entities:
print entity
entity.delete()
I get the following error:
File "usr/local/lib/python2.7/dist-packages/gcloud/datastore/entity.py", line 206, in delete
self.dataset().connection.delete_entity(
AttributeError: 'NoneType' object has no attribute 'delete_entity'
I found the same issue was identified and closed back in April #86
I may have an out of date version of the repo because when I manually compare my version of entity.py and query.py against the master, my version looks more like the version prior to resolving issue 86.
gcloud/datastore/query.py
- return [Entity.from_protobuf(entity) for entity in entity_pbs] # WHAT MY VERSION HAS
+ return [Entity.from_protobuf(entity, dataset=self.dataset())
+ for entity in entity_pbs]
However, when I run sudo pip install --upgrade gcloud the output says that the requirement is already up-to-date.
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.triage meI really want to be triaged.I really want to be triaged.