evernote-backup: [Bug]: init-db got error while --backend china
evernote-backup version
1.9.3
What OS are you using?
MacOS
OS Version / Linux distribution
14.2.1
Bug description
The evernote-backup was installed using brew install.
After running evernote-backup init-db --backend china, entering the email and password results in the program throwing an error directly.
Log excerpt
evernote-backup init-db --backend china
Logging in to Evernote...
Username or Email: xxxx@xx.com
Password:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/cli.py", line 305, in main
cli()
File "/opt/homebrew/opt/python-click/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/opt/python-click/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/opt/python-click/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/opt/python-click/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/opt/python-click/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/cli.py", line 158, in init_db
cli_app.init_db(
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/cli_app.py", line 38, in init_db
auth_token = get_auth_token(
^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/cli_app_auth.py", line 56, in get_auth_token
return evernote_login_password(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/cli_app_auth_password.py", line 56, in evernote_login_password
auth_res = auth_client.login(auth_user, auth_password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/evernote_client_auth.py", line 27, in login
return self.user_store.authenticateLongSessionV2(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/evernote_client.py", line 138, in wrapper
return target_method_retry(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/evernote_client_util.py", line 28, in wrapper
return fun(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote_backup/evernote_client_classes.py", line 294, in authenticateLongSessionV2
return self.recv_authenticateLongSession()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/evernote-backup/1.9.3/libexec/lib/python3.12/site-packages/evernote/edam/userstore/UserStore.py", line 779, in recv_authenticateLongSession
raise result.userException
evernote.edam.error.ttypes.EDAMUserException: EDAMUserException(errorCode=8, parameter='consumerKey')
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 23 (1 by maintainers)
I’m not sure why @facker289 's post was deleted, maybe it’s because they harshly criticized yinxiangbiji’s CEO 😂 But thank you so much it really works!🥹🥹 I’m finally able to get my notes synced with local database again after a long time!
It’s a pity that post was gone. I’d just repeat here what they suggested, to help anyone else in need.
They pointed out that yinxiangbiji might has changed the tokens’ policy. Exporting is no longer available using normal user login tokens. Follow the steps below to export your notes (or use the dev token as the
authenticationTokenparameter in any API).evernote-backupcommands with options-tor--token, followed by your developer token as its argument. So your command might look like one of the following:evernote-backup init-db --backend china -t <your_developer_token>evernote-backup reauth --token <your_developer_token>evernote-backup syncas you want!It works. Thanks for ur help! And yes for sure the CEO SUCKS.
不用等了,可以直接用历史版本导出就行,应该是2022年7月后版本不支持. 我下载印象笔记v6.22.60.4452就可以导出enex
why “sqlite3.OperationalError: unable to open database file”??
Hi @vzhd1701 , could you probably take a look at this issue? Your time and effort is greatly appreciated! We are not sure what’s going wrong with the
consumerKey. Is your developer API key expired or something? Did they change the API? Thank you so much for making this awesome library😊Seems like it’s the first time you run this command? I believe this is because you are downloading too many notes at one time and reached their servers’ limit for that. You can try again later - the
evernote-backup synccommand is designed for differential/incremental synchronization, which means it should be able to resume from the stop point of your last downloading task, instead of from the very beginning. Let’t me know if you’re able to download the rest of the notes.