md2notion icon indicating copy to clipboard operation
md2notion copied to clipboard

Does it work with python 3.11 or not? Help me

Open Misters-Wise opened this issue 2 years ago • 2 comments

Traceback (most recent call last): File "c:\Users\OD\3D Objects\Programas\Notion_Import\fromnotion.py", line 6, in client = NotionClient(token_v2="") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\OD\AppData\Local\Programs\Python\Python311\Lib\site-packages\notion\client.py", line 77, in init
self.session = create_session(client_specified_retry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\OD\AppData\Local\Programs\Python\Python311\Lib\site-packages\notion\client.py", line 39, in create_session retry = Retry( ^^^^^^ TypeError: Retry.init() got an unexpected keyword argument 'method_whitelist' PS C:\Users\OD\3D Objects\Programas\Notion_Import>

Misters-Wise avatar Aug 23 '23 02:08 Misters-Wise

I have the same problem with both 3.6.x and 3.11.x

shen-muchuan avatar Aug 28 '23 11:08 shen-muchuan

Try to install requests 2.29.0 pip install requests==2.29.0

Jinxuyang avatar Aug 31 '23 06:08 Jinxuyang