You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/dch/projects/fullfact/audio-transcriber/test.py", line 13, in <module>
blob.upload_from_file(proc.stdout, content_type="text/plain")
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 2760, in upload_from_file
self._prep_and_do_upload(
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 2601, in _prep_and_do_upload
created_json = self._do_upload(
^^^^^^^^^^^^^^^^
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 2424, in _do_upload
response = self._do_resumable_upload(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 2242, in _do_resumable_upload
upload, transport = self._initiate_resumable_upload(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 2116, in _initiate_resumable_upload
upload.initiate(
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/resumable_media/requests/upload.py", line 402, in initiate
method, url, payload, headers = self._prepare_initiate_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dch/projects/fullfact/audio-transcriber/.venv/lib/python3.11/site-packages/google/resumable_media/_upload.py", line 470, in _prepare_initiate_request
if stream.tell() != 0:
^^^^^^^^^^^^^
OSError: [Errno 29] Illegal seek
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered:
Apologies for the delay. Because uploads handle errors by rewinding to the last byte confirmed and sending the chunk over again, non-seekable streams are not supported by design. Special-casing non-seekable streams and disabling resumption of a resumable upload is possible and we will consider it as a feature request. In the meantime, I will update the API documentation in python-storage to make it clear that streams must be seekable for now.
Environment details
google-cloud-storage
version: 2.12.0Steps to reproduce
Blob.upload_from_file
, i.e.Popen.stdout
Code example
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: