GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AttributeError: 'NoneType' object has no attribute for 'delete_entry' · Issue #360 · googleapis/google-cloud-python

AttributeError: 'NoneType' object has no attribute for 'delete_entry' #360

New issue
Copy link
New issue
Copy link
Closed
Closed
AttributeError: 'NoneType' object has no attribute for 'delete_entry'#360
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Description

@sheridangray
sheridangray
opened on Nov 9, 2014
Issue body actions

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.

Activity

Next
  1. tseaver commented on Nov 9, 2014

    @tseaver
    tseaver
    on Nov 9, 2014
    Contributor
    More actions

    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":

    $ git clone git:github.com/GoogleCloudPlatform/gcloud-python.git
    $ cd gcloud-python/
    $ /path/to/virtualenv/bin/pip install -e .
    
  2. tseaver
    closed this as completedon Nov 9, 2014
  3. sheridangray commented on Nov 9, 2014

    @sheridangray
    sheridangray
    on Nov 9, 2014
    Author
    More actions

    Thank you!

    On Sun, Nov 9, 2014 at 11:16 AM, Tres Seaver [email protected]
    wrote:

    Closed #360
    #360.

    —
    Reply to this email directly or view it on GitHub
    #360 (comment)
    .

  4. dhermes commented on Nov 10, 2014

    @dhermes
    dhermes
    on Nov 10, 2014
    Contributor
    More actions

    @sheridangray You can also install via:

    pip install git+https://github.com/GoogleCloudPlatform/gcloud-python.git
    
  5. silvolu commented on Nov 10, 2014

    @silvolu
    silvolu
    on Nov 10, 2014
    Contributor
    More actions

    @jgeewax pinging for access to the package.

  6. jgeewax
    added
    api: datastoreIssues related to the Datastore API.
    on Jan 30, 2015
  7. jgeewax
    added this to the This milestone has been deleted milestone on Jan 30, 2015
  8. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  9. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  10. atulep
    added 2 commits that reference this issue on Apr 6, 2023

    chore(deps): update dependency google-cloud-storage to v2.3.0 (#360)

    912b7fa

    chore(deps): update dependency google-cloud-storage to v2.3.0 (#360)

    21b9f08
  11. atulep
    added a commit that references this issue on Apr 18, 2023

    chore(deps): update dependency google-cloud-storage to v2.3.0 (#360)

    e9e5ba1
  12. parthea
    added 2 commits that reference this issue on Jun 4, 2023

    fix(deps): allow protobuf < 5.0.0 (#360)

    765a2ad

    chore(deps): update actions/setup-python action to v4 [autoapprove] (#…

    2789efe
  13. 15 remaining items

  14. parthea
    added a commit that references this issue on Sep 16, 2025

    feat: add `write_mode` property to BigQuery Storage Write API v1 (#360)

    f871e92
  15. parthea
    added 9 commits that reference this issue on Nov 24, 2025

    fix: remove dependency on pkg_resources (#361)

    This issue will close once commit a8ea165 is merged into the 'main' branch.
    a8ea165

    chore(python): Block pushing non-cloud libraries to Cloud RAD (#360)

    This issue will close once commit e4b2b00 is merged into the 'main' branch.
    e4b2b00

    chore: detect samples tests in nested directories (#360)

    This issue will close once commit cef5ad1 is merged into the 'main' branch.
    cef5ad1

    chore(python): update dependencies in .kokoro/docker/docs (#360)

    This issue will close once commit 22824e4 is merged into the 'main' branch.
    22824e4

    docs: fix broken links in multiprocessing.rst (#360)

    This issue will close once commit 9ebf24d is merged into the 'main' branch.
    9ebf24d

    fix: enable self signed jwt for grpc (#360)

    This issue will close once commit 28405d6 is merged into the 'main' branch.
    28405d6

    chore: release 2.6.0 (#337)

    This issue will close once commit a662cfc is merged into the 'main' branch.
    a662cfc

    fix: enable self signed jwt for grpc (#360)

    This issue will close once commit 8198793 is merged into the 'main' branch.
    8198793

    chore: release 2.6.0 (#337)

    This issue will close once commit 3a21ae1 is merged into the 'main' branch.
    3a21ae1
  16. parthea
    added a commit that references this issue on Feb 9, 2026

    tests: filter deprecation warnings related to unsupported Python runt…

    2bab60e
  17. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    docs: fix `create_topic()` call in README (#360)

    3e1ed13

    chore: exclude requirements.txt file from renovate-bot (#360)

    1ebed5a
  18. parthea
    added 2 commits that reference this issue on Mar 9, 2026

    chore(deps): update dependency gcp-releasetool to v1.16.0 (#360)

    b28671c

    fix: classify batched DDL statements (#360)

    6fe177b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.