Skip to content

Google cloud datastore: Client.__init__() got an unexpected keyword argument 'database' #4314

@jimcybersec

Description

@jimcybersec

Expected Behavior

Can read online features from a Google Cloud Datastore instance.

Current Behavior

In the Python SDK, FeatureStore class attempts to initialize a datastore Client by passing a 'database' argument. Feast's setup.py lower bounds google-cloud-datastore at 2.1.0 whereas the 'database' argument was not introduced to the datastore Client until version 2.16.0 of google-cloud-datastore: https://github.com/googleapis/python-datastore/blob/v2.16.0/google/cloud/datastore/client.py#L301

This results in error "Client.init() got an unexpected keyword argument 'database'" with google-cloud-datastore <2.16.0 installed.

Steps to reproduce

Attempt to read online features from a known Google Cloud Datastore instance with google-cloud-datastore <2.16.0 and Feast version 0.38. This problem appears to also exist in the latest Feast release.

Specifications

  • Version: 0.38
  • Platform: Python, Google Cloud Datastore
  • Subsystem:

Possible Solution

Increase google-cloud-datastore lower bound in setup.py to >=2.16.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions