Reputation: 117
I am following the setup guide for Google Sheets API and I have followed step 1 and installed the necessary libraries.
When I try to run the code in step 2 I get this error:
Traceback (most recent call last):
File "C:/Users/ben/Desktop/Current & Upcomming Work/_Active Code/AllTheatreJobs/quickstart.py", line 4, in <module>
from google_auth_oauthlib.flow import InstalledAppFlow
File "C:\Users\ben\Desktop\Current & Upcomming Work\_Active Code\AllTheatreJobs\venv\lib\site-packages\google_auth_oauthlib\__init__.py", line 21, in <module>
from .interactive import get_user_credentials
File "C:\Users\ben\Desktop\Current & Upcomming Work\_Active Code\AllTheatreJobs\venv\lib\site-packages\google_auth_oauthlib\interactive.py", line 24, in <module>
import google_auth_oauthlib.flow
File "C:\Users\ben\Desktop\Current & Upcomming Work\_Active Code\AllTheatreJobs\venv\lib\site-packages\google_auth_oauthlib\flow.py", line 68, in <module>
import google.auth.transport.requests
File "C:\Users\ben\Desktop\Current & Upcomming Work\_Active Code\AllTheatreJobs\venv\lib\site-packages\google\auth\transport\requests.py", line 37, in <module>
import requests.adapters # pylint: disable=ungrouped-imports
ModuleNotFoundError: No module named 'requests.adapters'
I've have installed the requests library but that does not solve the issue. I can't see any other reports of this issue anywhere else. Any advice?
Upvotes: 1
Views: 1923
Reputation: 117
I uninstalled the requests library and then re-installed it, which solved the issue.
Upvotes: 1