-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need the Correct Versions of google-auth and google-api-python-client for Python 3.9 Runtime to Resolve MTLS Missing Issue #2355
Comments
@sarsivas thanks for reporting this issue. I tried running a simple script locally with from googleapiclient.discovery import build
def main():
build("", "")
if __name__ == '__main__':
main() However, I found out that Therefore, a version of With from google.auth.transport import mtls
ImportError: cannot import name 'mtls' from 'google.auth.transport' (/usr/local/google/home/omairn/.pyenv/versions/3.9.5/envs/py39/lib/python3.9/site-packages/google/auth/transport/__init__.py) It may be that in your case, an older version of Can you confirm this behaviour by running If that's not the case, we will need more information from you regarding what exactly you're running and if this occurs only when using the Python SDK in App engine. |
Thank you, Ohmayr. We are utilizing the 'google/cloud-sdk:449.0.0' Docker image to execute pytest. The error pertains to the Google Cloud SDK library path where it does not contain the 'mtls.py' module. Below is the output:
Not an issue with the library, it seems that the old version of the library, which doesn't have 'mtls', is present in the Google Cloud SDK version 449. We can close this support ticket. |
Glad you were able to resolve the issue! Closing. |
Description
We are utilizing the specified package versions listed in requirement.txt for the App Engine Python 3.9 runtime, and we are experiencing the following error when running local development tests with pytest using the Google Cloud SDK
google-auth==2.23.4
google-api-python-client==2.52.0
Error
Notes
pip install google-api-python-client==2.122.0
pip install google-auth==2.28.2
The text was updated successfully, but these errors were encountered: