Error while running python test from Build Pipeline - TypeError: __init__() got an unexpected keyword argument 'client_options'

Error while running python test from Build Pipeline - TypeError: __init__() got an unexpected keyword argument 'client_options'

运行 python 测试我在代码中使用 google-cloud-datastore 的地方,这个错误是否特定于版本?

TypeError: __init__() got an unexpected keyword argument 'client_options'

如何解决这个错误?

我已经通过 updating/upgrading 下面的库解决了这个问题,

以前的版本:

google-cloud-core==1.3.0
google-cloud-datastore==1.14.0

新版本:

google-cloud-core==1.4.1
google-cloud-datastore==1.15.0

所以我们可以说错误是因为我们代码中使用的 google 库版本不匹配。