Traceback (most recent call last):
File "deploy.py", line 43, in <module>
main()
File "deploy.py", line 36, in main
if op.done() == True:
File "/home/rosariod/.virtualenv/automl/lib/python3.6/site-packages/google/api_core/operation.py", line 170, in done
self._refresh_and_update(retry)
File "/home/rosariod/.virtualenv/automl/lib/python3.6/site-packages/google/api_core/operation.py", line 157, in _refresh_and_update
self._operation = self._refresh(retry=retry)
TypeError: _refresh_grpc() got an unexpected keyword argument 'retry'
A call to
from_grpcfails withIt seems like it sets
_refresh_grpcas self._refresh for the Operation object https://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py#L299 but when_refresh_and_updateis called bydone, it gets and passes down to_refresh_grpcaretryparam https://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py#L157 that_refresh_grpcdoesn't know how to handle https://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py#L251 causing the error above.It might be that the
retryparam could be correctly handled when the Operation object is created byfrom_gapicbecause in that case self._refresh is set tooperations_client.get_operationhttps://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py#L325 which might be aware of theretryparam but doesn't seem to be the case forfrom_grpcandfrom_http_json.