TypeError: __init__() got an unexpected keyword argument 'allowed_methods' #69
Replies: 1 comment
-
You have a dependency version conflict. I would suggest you install enex2notion into a virtual environment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you very much for your useful tools and I have been successfully exported notes from EVERNOTE as .enex.
However there seems to be some problems while I was importing .enex into NOTION. I was using command:
python -m enex2notion --token [my token_v2 number] --done-file note.txt noteBook.enex
And it turns out to be:
Traceback (most recent call last):
File "C:\Anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Anaconda3\lib\site-packages\enex2notion_main.py", line 4, in
main()
File "C:\Anaconda3\lib\site-packages\enex2notion\cli.py", line 47, in main
cli(sys.argv[1:])
File "C:\Anaconda3\lib\site-packages\enex2notion\cli.py", line 26, in cli
root = get_root(args.token, args.root_page)
File "C:\Anaconda3\lib\site-packages\enex2notion\cli_notion.py", line 21, in get_root
client = get_notion_client(token)
File "C:\Anaconda3\lib\site-packages\enex2notion\cli_notion.py", line 31, in get_notion_client
return NotionClient(token_v2=token)
File "C:\Anaconda3\lib\site-packages\notion\client.py", line 88, in init
self.session = create_session(client_specified_retry)
File "C:\Anaconda3\lib\site-packages\notion\client.py", line 47, in create_session
retry = Retry(
TypeError: init() got an unexpected keyword argument 'allowed_methods'
I am a junior on using PYTHON and I could only be sure that this is dealing with version, but I don't know how to solve it, so I came for some help.
I was doing this on windows10 on a personal laptop, and my PYTHON version is 3.8.5 on Anaconda. Thank you!
And one more thing, during the last time I install enex2notion, it told me these things below, but I am not sure whether it would help:
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
mythx-models 1.9.1 requires python-dateutil==2.8.1, but you'll have python-dateutil 2.8.2 which is incompatible.
Successfully installed enex2notion-0.2.25 python-dateutil-2.8.2
Beta Was this translation helpful? Give feedback.
All reactions