Skip to content
New issue

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

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

Already on GitHub? # to your account

gsutil - Python warnings in google/cloud-sdk:487.0.0-alpine #453

Closed
jerni opened this issue Aug 9, 2024 · 3 comments
Closed

gsutil - Python warnings in google/cloud-sdk:487.0.0-alpine #453

jerni opened this issue Aug 9, 2024 · 3 comments

Comments

@jerni
Copy link

jerni commented Aug 9, 2024

b859ed1e9582:/# gsutil version -l
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/init.py:1105: SyntaxWarning: invalid escape sequence '\c'
"""
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/pyami/config.py:98: SyntaxWarning: invalid escape sequence '\s'
match = re.match("^#import[\s\t]([^\s^\t])[\s\t]$", line)
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/constraint.py:100: SyntaxWarning: invalid escape sequence '*'
"""Create a SingleValueConstraint object.
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/constraint.py:141: SyntaxWarning: invalid escape sequence '*'
"""Create a ContainedSubtypeConstraint object.
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/constraint.py:301: SyntaxWarning: invalid escape sequence '*'
"""Create a PermittedAlphabetConstraint object.
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/constraint.py:457: SyntaxWarning: invalid escape sequence '*'
"""Create a ConstraintsIntersection logic operator object.
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/constraint.py:501: SyntaxWarning: invalid escape sequence '*'
"""Create a ConstraintsUnion logic operator object.
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/namedval.py:15: SyntaxWarning: invalid escape sequence '*'
"""Create named values object.
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/connection.py:672: SyntaxWarning: invalid escape sequence '\w'
'(?:(?P[\w-.]+):(?P.
)@)?'
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/connection.py:673: SyntaxWarning: invalid escape sequence '\w'
'(?P[\w-.]+)'
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/connection.py:674: SyntaxWarning: invalid escape sequence '\d'
'(?::(?P\d+))?'
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/connection.py:1121: SyntaxWarning: invalid escape sequence '.'
'specific endpoint this request was sent to.'
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/https_connection.py:80: SyntaxWarning: invalid escape sequence '.'
host_re = host.replace('.', '.').replace('', '[^.]')
gsutil version: 5.30
checksum: 9996ebfa53b330353ea6981e3143d15b (OK)
boto version: 2.49.0
python version: 3.12.3 (main, Apr 18 2024, 07:52:31) [GCC 13.2.1 20240309]
OS: Linux 6.6.32-linuxkit
multiprocessing available: False
using cloud sdk: True
pass cloud sdk credentials to gsutil: True
config path(s): No config found
gsutil path: /google-cloud-sdk/bin/gsutil
compiled crcmod: True
installed via package manager: False
editable install: False
shim enabled: False

@pavandagagoogle
Copy link

Seems to be a duplicate of - #451

@cloudsdkdocker
Copy link
Contributor

Fixed in: c6878f5

Alpine will be upgraded to 3.20 once the incompatibility is addressed.

@muffl0n
Copy link

muffl0n commented Aug 30, 2024

FTR: Bug is documented here: GoogleCloudPlatform/gsutil#1776

Strangely enough it's said to be fixed in gsutil 5.29/5.30. Which does not seem to be the case within Alpine:

/ # cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.20.2
PRETTY_NAME="Alpine Linux v3.20"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
/ # gsutil version
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/__init__.py:1105: SyntaxWarning: invalid escape sequence '\c'
  """
/google-cloud-sdk/platform/gsutil/gslib/vendored/boto/boto/pyami/config.py:98: SyntaxWarning: invalid escape sequence '\s'
  match = re.match("^#import[\s\t]*([^\s^\t]*)[\s\t]*$", line)
/google-cloud-sdk/platform/gsutil/third_party/pyasn1/pyasn1/type/constraint.py:100: SyntaxWarning: invalid escape sequence '\*'
...
gsutil version: 5.30

/ # python --version
Python 3.12.3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants