match_glob keyword argument on google.cloud.storage.Client().list_blobs() has disappeared
austinweisgrau opened this issue · 2 comments
Even though this was working until very recently, and without even upgrading the version of google-cloud-storage, I am seeing a sudden new TypeError when using a documented keyword argument to this method.
Documentation here: https://cloud.google.com/python/docs/reference/storage/latest/google.cloud.storage.client.Client#google_cloud_storage_client_Client_list_blobs
Environment details
- OS type and version: ubuntu 22.04
- Python version:
python --version
python 3.10.9 - pip version:
pip --version
pip version 24.0 google-cloud-storage
version:pip show google-cloud-storage
google-cloud-core==2.3.2
google-cloud-storage==2.8.0
Steps to reproduce
from google.cloud import storage
storage.Client().list_blobs("some_bucket", match_glob="foo")
>> TypeError: Client.list_blobs() got an unexpected keyword argument 'match_glob'
Hi @austinweisgrau the match_glob
argument is supported in google-cloud-storage >= 2.10.0
Based on pip show, you're running on v2.8.0 which is prior to this argument being introduced to the library. Here is the v2.8.0 documentation. Could you try upgrading to the latest version? That should resolve your issue.
Ah yep that's right. I thought I'd tried it with 2.10.0 and 2.8.0 but looks like that's not true. Upgrading to 2.10.0 or all the way to 2.16.0 works. Thank you very much.