discord2sheet-bot icon indicating copy to clipboard operation
discord2sheet-bot copied to clipboard

googleapiclient.errors.UnknownApiNameOrVersion: name: sheets version: v4

Open GreedKiwi opened this issue 2 years ago • 0 comments

Hello, I've been trying to make this work for the past hours, I'm new to python and have a friend trying to help me set this up. Was fixing the errors I was finding in the way but I stumbled into one I couldn't fix, my friend told me to contact you.

image

I even changed the discovery thing in the gsheet.py as i searched for the error online, but it wasn't fixed regardless.

Traceback (most recent call last):
  File "C:\Users\damia\Desktop\discord2sheet-bot-master\init.py", line 10, in <module>
    sheet = gsheet()
  File "C:\Users\damia\Desktop\discord2sheet-bot-master\gsheet.py", line 34, in __init__
    self.service = build('sheets', 'v4', credentials=self.creds)
  File "C:\Users\damia\AppData\Local\Programs\Python\Python311\Lib\site-packages\googleapiclient\_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Users\damia\AppData\Local\Programs\Python\Python311\Lib\site-packages\googleapiclient\discovery.py", line 287, in build
    content = _retrieve_discovery_doc(
  File "C:\Users\damia\AppData\Local\Programs\Python\Python311\Lib\site-packages\googleapiclient\discovery.py", line 404, in _retrieve_discovery_doc
    raise UnknownApiNameOrVersion(
googleapiclient.errors.UnknownApiNameOrVersion: name: sheets  version: v4

GreedKiwi avatar Nov 29 '22 23:11 GreedKiwi