Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for -: 'tuple' and 'float' #403

Closed
uriva opened this issue Dec 9, 2019 · 2 comments
Closed

TypeError: unsupported operand type(s) for -: 'tuple' and 'float' #403

uriva opened this issue Dec 9, 2019 · 2 comments
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@uriva
Copy link

uriva commented Dec 9, 2019

1119 /usr/local/lib/python3.7/site-packages/nlu/bucket_utils.py:23: in load_item
1120     pickled_cache_string = blob.download_as_string()
1121 /usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py:802: in download_as_string
1122     raw_download=raw_download,
1123 /usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py:719: in download_to_file
1124     transport, file_obj, download_url, headers, start, end, raw_download
1125 /usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py:643: in _do_download
1126     download.consume(transport)
1127 /usr/local/lib/python3.7/site-packages/google/resumable_media/requests/download.py:151: in consume
1128     result = _helpers.http_request(transport, method, url, **request_kwargs)
1129 /usr/local/lib/python3.7/site-packages/google/resumable_media/requests/_helpers.py:136: in http_request
1130     return _helpers.wait_and_retry(func, RequestsMixin._get_status_code, retry_strategy)
1131 /usr/local/lib/python3.7/site-packages/google/resumable_media/_helpers.py:150: in wait_and_retry
1132     response = func()
1133 /usr/local/lib/python3.7/site-packages/google/auth/transport/requests.py:252: in request
1134     self.credentials.before_request(auth_request, method, url, request_headers)
1135 /usr/local/lib/python3.7/site-packages/google/auth/transport/requests.py:89: in __exit__
1136     self.remaining_timeout = self._timeout - elapsed
1137 E   TypeError: unsupported operand type(s) for -: 'tuple' and 'float'

Did I do something stupid or there's a bug in current version?

@busunkim96
Copy link
Contributor

@uriva There's a bug! Thank you for opening an issue.

It'll be fixed in 1.8.1 (release in progress: #402). You can pin to 1.7.2 for now.

@busunkim96 busunkim96 added priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Dec 9, 2019
@busunkim96
Copy link
Contributor

1.8.1 has been released. Will open a follow-up issue for investigating what happened here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants