Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Running python test where i have used google-cloud-datastore in my code, so is this error specific to version?

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

How to fix this error?

like image 409
Vinod Avatar asked Jul 22 '26 09:07

Vinod


1 Answers

I have solved this problem by updating/upgrading below libraries,

previous versions:

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

new versions:

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

so we could say error was because of version mismatch in google library that was used in our code.

like image 189
Vinod Avatar answered Jul 24 '26 23:07

Vinod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!