-
Notifications
You must be signed in to change notification settings - Fork 163
Closed
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- OS type and version: MacOS
- Python version: 3.10.16
- pip version:
23.0.1 google-cloud-storageversion:2.19
Steps to reproduce
- See the following code
Code example
from google.cloud.storage import Blob
from google.cloud.storage import Bucket
from google.cloud.storage import Client
from google.cloud.storage.fileio import BlobReader
test_file="textio/textio-test-data.default.1k.txt"
client = Client("apache-beam-testing")
bucket = Bucket(client=client, name="apache-beam-samples")
blob = Blob(test_file, bucket=bucket)
reader = BlobReader(blob, raw_download=True)
reader.seek(0)Stack trace
Traceback (most recent call last):
File "PATH/gcs-client-bug.py", line 13, in <module>
reader.seek(0)
File "python/venv/lib/python3.10/site-packages/google/cloud/storage/fileio.py", line 181, in seek
self._blob.reload(**self._download_kwargs)
TypeError: _PropertyMixin.reload() got an unexpected keyword argument 'raw_download'
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/python-storage API.Issues related to the googleapis/python-storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.