Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TypeError: __init__() got an unexpected keyword argument 'allowed_methods' #51

Closed
ma3252788 opened this issue Sep 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ma3252788
Copy link

enex2notion version

enex2notion 0.2.19

What OS are you using?

MacOS

OS Version / Linux distribution

12.5

Bug description

When I use python -m enex2notion --token 6d5e5b2e50122axxxxxxxx output_dir/

I got:

Traceback (most recent call last):
  File "/Users/mcj/anaconda3/envs/py3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/mcj/anaconda3/envs/py3/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/mcj/.local/lib/python3.7/site-packages/enex2notion/__main__.py", line 4, in <module>
    main()
  File "/Users/mcj/.local/lib/python3.7/site-packages/enex2notion/cli.py", line 47, in main
    cli(sys.argv[1:])
  File "/Users/mcj/.local/lib/python3.7/site-packages/enex2notion/cli.py", line 26, in cli
    root = get_root(args.token, args.root_page)
  File "/Users/mcj/.local/lib/python3.7/site-packages/enex2notion/cli_notion.py", line 21, in get_root
    client = get_notion_client(token)
  File "/Users/mcj/.local/lib/python3.7/site-packages/enex2notion/cli_notion.py", line 31, in get_notion_client
    return NotionClient(token_v2=token)
  File "/Users/mcj/.local/lib/python3.7/site-packages/notion/client.py", line 88, in __init__
    self.session = create_session(client_specified_retry)
  File "/Users/mcj/.local/lib/python3.7/site-packages/notion/client.py", line 53, in create_session
    "POST",
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'

Log excerpt

No response

@ma3252788 ma3252788 added the bug Something isn't working label Sep 23, 2022
@vzhd1701
Copy link
Owner

You have a dependency version conflict. You should uninstall enex2notion and reinstall it using Homebrew or install it in a virtual environment.

@ma3252788
Copy link
Author

Yes, when I change to homebrew, it works!

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants