google-api-python-client: cannot import name 'mtls'
This appears to be a bug with version 1.9 caused by https://github.com/googleapis/google-api-python-client/pull/917
Environment details
- OS type and version: OS X 10.15.4
- Python version:
3.6.10
- pip version:
20.0.02
google-api-python-client
version:1.9.1
Steps to reproduce
- python -c “import googleapiclient.discovery”
Stack trace
----> 1 import googleapiclient.discovery
~/miniconda3/envs/surround-cp/lib/python3.6/site-packages/googleapiclient/discovery.py in <module>
48 import uritemplate
49 import google.api_core.client_options
---> 50 from google.auth.transport import mtls
51 from google.auth.exceptions import MutualTLSChannelError
52
ImportError: cannot import name 'mtls'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (9 by maintainers)
@A-Sm1th I tested
google-auth 1.17.2
and it worked fine.Note, this is still an issue when I install this package with conda install, because these dependency requirements haven’t been updated in the conda recipe: https://github.com/conda-forge/google-api-python-client-feedstock/issues/39
@nitramsivart yes, please upgrade
google-auth
.mtls
is not defined in the old version.