Google docs is working but google drive reader is not working
from llama_index import download_loader
GoogleDriveReader = download_loader('GoogleDriveReader')
loader = GoogleDriveReader()
documents = loader.load_data(file_ids=['file_id'])
OUTPUT:
TypeError: GoogleDriveReader._load_from_file_ids() takes 2 positional arguments but 3 were given
Notion reader is also giving an error.
from llama_index import GPTListIndex, NotionPageReader
from IPython.display import Markdown, display
import os
integration_token = 'notion_integration_token'
page_ids = ["page_id"]
notion_reader = NotionPageReader(integration_token=integration_token)
documents = notion_reader.read_page(page_id=page_ids)
OUTPUT:
~/.local/lib/python3.10/site-packages/llama_index/readers/notion.py in _read_block(self, block_id, num_tabs)
58 data = res.json()
59
---> 60 for result in data["results"]:
61 result_type = result["type"]
62 result_obj = result[result_type]
KeyError: 'results'
Please anyone help me with this. @jerryjliu0 @Logan M @ravitheja