You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: 'NoneType' object has no attribute for 'delete_entry' #360
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.
The version on PyPI is really old: we need to make a new release. In the meanwhile, you can clone this repository and have pip install it as a "development package":
Activity
tseaver commentedon Nov 9, 2014
The version on PyPI is really old: we need to make a new release. In the meanwhile, you can clone this repository and have pip install it as a "development package":
sheridangray commentedon Nov 9, 2014
Thank you!
On Sun, Nov 9, 2014 at 11:16 AM, Tres Seaver notifications@github.com
wrote:
dhermes commentedon Nov 10, 2014
@sheridangray You can also install via:
silvolu commentedon Nov 10, 2014
@jgeewax pinging for access to the package.
chore(deps): update dependency google-cloud-storage to v2.3.0 (#360)
chore(deps): update dependency google-cloud-storage to v2.3.0 (#360)
chore(deps): update dependency google-cloud-storage to v2.3.0 (#360)
fix(deps): allow protobuf < 5.0.0 (#360)
chore(deps): update actions/setup-python action to v4 [autoapprove] (#…
15 remaining items
feat: add `write_mode` property to BigQuery Storage Write API v1 (#360)
fix: remove dependency on pkg_resources (#361)
chore(python): Block pushing non-cloud libraries to Cloud RAD (#360)
chore: detect samples tests in nested directories (#360)
chore(python): update dependencies in .kokoro/docker/docs (#360)
docs: fix broken links in multiprocessing.rst (#360)
fix: enable self signed jwt for grpc (#360)
chore: release 2.6.0 (#337)
fix: enable self signed jwt for grpc (#360)
chore: release 2.6.0 (#337)
tests: filter deprecation warnings related to unsupported Python runt…
docs: fix `create_topic()` call in README (#360)
chore: exclude requirements.txt file from renovate-bot (#360)
chore(deps): update dependency gcp-releasetool to v1.16.0 (#360)
fix: classify batched DDL statements (#360)