Skip to content

[Bug]: TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'key_file' #130

@inyun2u

Description

@inyun2u

evernote-backup version

1.10.0

What OS are you using?

Windows

OS Version / Linux distribution

windows 10, ubuntu 24.04(wsl2)

Bug description

After proceeding OAuth, it show error as follows

Log excerpt

inyun2u@DESKTOP-5D0UB6O:~/evernote-backup$ poetry run evernote-backup --verbose init-db
Logging in to Evernote...
Using OAuth authentication...
Opening authorization page...
If it didn't open automatically, please copy this URL into your browser:
https://www.evernote.com/OAuth.action?oauth_token=bulkbackup.196372CD335.687474703A2F2F6C6F63616C686F73743A31303530302F6F617574685F63616C6C6261636B.098AE62CB402958ADC46C20D278DC100
gio: https://www.evernote.com/OAuth.action?oauth_token=bulkbackup.196372CD335.687474703A2F2F6C6F63616C686F73743A31303530302F6F617574685F63616C6C6261636B.098AE62CB402958ADC46C20D278DC100: Operation not supported
Authorizing auth token, evernote backend...
ERROR: Unknown exception
Traceback (most recent call last):
  File "/home/inyun2u/evernote-backup/evernote_backup/cli.py", line 84, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/inyun2u/evernote-backup/evernote_backup/cli.py", line 176, in init_db
    cli_app.init_db(
  File "/home/inyun2u/evernote-backup/evernote_backup/cli_app.py", line 46, in init_db
    note_client = get_sync_client(auth_token, backend, network_retry_count, 1, False)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/inyun2u/evernote-backup/evernote_backup/cli_app_auth.py", line 31, in get_sync_client
    client.verify_token()
  File "/home/inyun2u/evernote-backup/evernote_backup/evernote_client.py", line 69, in verify_token
    self.user_store.getUser()
  File "/home/inyun2u/evernote-backup/evernote_backup/evernote_client.py", line 171, in wrapper
    return functools.partial(
           ^^^^^^^^^^^^^^^^^^
  File "/home/inyun2u/evernote-backup/evernote_backup/evernote_client_util.py", line 28, in wrapper
    return fun(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/inyun2u/.cache/pypoetry/virtualenvs/evernote-backup-vjsflYeF-py3.12/lib/python3.12/site-packages/evernote/edam/userstore/UserStore.py", line 1123, in getUser
    self.send_getUser(authenticationToken)
  File "/home/inyun2u/.cache/pypoetry/virtualenvs/evernote-backup-vjsflYeF-py3.12/lib/python3.12/site-packages/evernote/edam/userstore/UserStore.py", line 1132, in send_getUser
    self._oprot.trans.flush()
  File "/home/inyun2u/.cache/pypoetry/virtualenvs/evernote-backup-vjsflYeF-py3.12/lib/python3.12/site-packages/thrift/transport/THttpClient.py", line 148, in flush
    self.open()
  File "/home/inyun2u/.cache/pypoetry/virtualenvs/evernote-backup-vjsflYeF-py3.12/lib/python3.12/site-packages/thrift/transport/THttpClient.py", line 113, in open
    self.__http = http_client.HTTPSConnection(self.host, self.port,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'key_file'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions