Skip to content

Error: Retry.__init__() got an unexpected keyword argument 'method_whitelist' #11

@dverlotta

Description

@dverlotta
  • git-notion version:0.2.4
  • Python version:3.11
  • Operating System:MAc

Description

run git-notion to upload docs on notion.

What I Did

export NOTION_TOKEN_V2=xxxxx
export NOTION_ROOT_PAGE=https://www.notion.so/xxxxx....
git-notion
Error
running sync Traceback (most recent call last): File "/usr/local/bin/git-notion", line 33, in <module> sys.exit(load_entry_point('git-notion', 'console_scripts', 'git-notion')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/domenico.verlotta/git-notion/git_notion/cli.py", line 12, in main git_notion.sync_to_notion(path) File "/Users/domenico.verlotta/git-notion/git_notion/git_notion.py", line 63, in sync_to_notion root_page = get_client().get_block(root_page_url) ^^^^^^^^^^^^ File "/Users/domenico.verlotta/git-notion/git_notion/git_notion.py", line 21, in get_client _client = NotionClient(token_v2=TOKEN) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/notion/client.py", line 77, in __init__ self.session = create_session(client_specified_retry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/notion/client.py", line 39, in create_session retry = Retry( ^^^^^^ TypeError: Retry.__init__() got an unexpected keyword argument 'method_whitelist'

I don't know Payton, can someone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions