nithinmurali / pygsheets

Google Sheets Python API v4
https://pygsheets.readthedocs.io/en/latest
Other
1.51k stars 220 forks source link

ModuleNotFoundError: No module named 'requests.packages.urllib3.util.ssl_' when importing pygsheets #487

Closed thomhartog closed 3 years ago

thomhartog commented 3 years ago

Hi, when i try to run import pygsheets

I get this error:

          ModuleNotFoundError                       Traceback (most recent call last)
          <ipython-input-22-4f8d0a3dce61> in <module>
                   1 # For connect to google sheet
          ----> 2 import pygsheets

          ~\Anaconda3\lib\site-packages\pygsheets\__init__.py in <module>
                  12 __author__ = 'Nithin Murali'
                  13 
          ---> 14 from pygsheets.authorization import authorize
                  15 from pygsheets.spreadsheet import Spreadsheet
                  16 from pygsheets.worksheet import Worksheet

          ~\Anaconda3\lib\site-packages\pygsheets\authorization.py in <module>
                   6 from google.oauth2 import service_account
                   7 from google.oauth2.credentials import Credentials
          ----> 8 from google_auth_oauthlib.flow import Flow, InstalledAppFlow
                   9 from google.auth.transport.requests import Request
                  10 

          ~\Anaconda3\lib\site-packages\google_auth_oauthlib\__init__.py in <module>
                  19 """
                  20 
          ---> 21 from .interactive import get_user_credentials
                  22 
                  23 __all__ = ["get_user_credentials"]

          ~\Anaconda3\lib\site-packages\google_auth_oauthlib\interactive.py in <module>
                  22 from __future__ import absolute_import
                  23 
          ---> 24 import google_auth_oauthlib.flow
                  25 
                  26 

          ~\Anaconda3\lib\site-packages\google_auth_oauthlib\flow.py in <module>
                  66 import wsgiref.util
                  67 
          ---> 68 import google.auth.transport.requests
                  69 import google.oauth2.credentials
                  70 from six.moves import input

          ~\Anaconda3\lib\site-packages\google\auth\transport\requests.py in <module>
                  37 import requests.adapters  # pylint: disable=ungrouped-imports
                  38 import requests.exceptions  # pylint: disable=ungrouped-imports
          ---> 39 from requests.packages.urllib3.util.ssl_ import (
                  40     create_urllib3_context,
                  41 )  # pylint: disable=ungrouped-imports

          ModuleNotFoundError: No module named 'requests.packages.urllib3.util.ssl_'; 'requests.packages.urllib3.util' is not a package

What could be the problem?