Today I upgraded Google Cloud SDK to the latest version 509.0.0.0 on Debian 12 and I noticed:
Setting up google-cloud-cli (509.0.0-0) ...
lib/googlecloudsdk/appengine/api/datastore.py:1294: SyntaxWarning: invalid escape sequence '\s'
'^\s*([^\s]+)(\s+(%s)\s*)?$' % '|'.join(OPERATORS),
lib/third_party/antlr3/recognizers.py:516: SyntaxWarning: invalid escape sequence '\<'
"""
lib/third_party/google/cloud/appengine_v1/proto/app_yaml_pb2.py:914: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """\ `Google Cloud Endpoints
lib/third_party/google/cloud/appengine_v1/proto/app_yaml_pb2.py:958: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """URL pattern and description of how the URL should be handled. App
lib/third_party/google/cloud/appengine_v1alpha/proto/app_yaml_pb2.py:958: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """URL pattern and description of how the URL should be handled. App
lib/third_party/google/cloud/appengine_v1/proto/version_pb2.py:1476: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """\ `Cloud Endpoints <https://cloud.google.com/endpoints>`__
lib/third_party/google/cloud/appengine_v1beta/proto/app_yaml_pb2.py:958: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """URL pattern and description of how the URL should be handled. App
lib/third_party/google/cloud/appengine_v1alpha/proto/version_pb2.py:1659: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """\ `Cloud Endpoints <https://cloud.google.com/endpoints>`__
lib/third_party/google/cloud/appengine_v1beta/proto/version_pb2.py:1556: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """\ `Cloud Endpoints <https://cloud.google.com/endpoints>`__
lib/third_party/google/cloud/bigquery_logging_v1/proto/audit_data_pb2.py:2770: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """User-provided metadata for a table.
lib/third_party/google/cloud/bigquery_logging_v1/proto/audit_data_pb2.py:2841: SyntaxWarning: invalid escape sequence '\ '
'__doc__': """User-provided metadata for a dataset.
platform/gsutil/third_party/pyparsing/examples/bigquery_view_parser.py:1712: SyntaxWarning: invalid escape sequence '\s'
"""\
Can I safely ignore these syntax warnings?
Or do you recommend to downgrade to the previous version?
It seems like it is currently a known issue from Google. There is already a bug raised for the same.
As per the latest update on the Bug they are going to release the new version (v510) on (11/02/2025), which will resolve the warnings displayed during the installation step. Also they suggested that these warnings do not impact the installation process or gcloud functionality.
For further updates on the issue you can mark +1
on the existing Bug Or Feel free to raise a new Issue tracker or contact google support explaining your concern. You can use this page for reference when creating an issue.