cannot import name 'mtls'
See original GitHub issueThis 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'
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (9 by maintainers)
Top Results From Across the Web
from pydrive.auth import GoogleAuth > cannot import name ...
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive. it says: cannot import name 'mtls' from 'google.auth.transport ...
Read more >importerror: cannot import name 'mutualtlschannelerror' from ...
it says: cannot import name 'mtls' from 'google.auth.transport (C:\Users\RAFI\anaconda3\lib\site-packages\google\auth\transport_ init _.py) python pydrive ...
Read more >mtls - PyPI
Mutual TLS is a sub-category of Mutual Authentication, where the client and server, or server and server are verifying the identity of one...
Read more >[Fixed] ModuleNotFoundError: No module named 'google-auth'
Quick Fix: Python raises the ImportError: No module named 'google-auth' when it cannot find the library google-auth . The most frequent source of...
Read more >Import Error: No Module named google.auth
I'm trying to use the Google Calendar API with GAE standard environment Python 2.7. However I'm facing this issue that I cannot import...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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