GGyll / audible-bookmark-extractor

A tool allowing a user to download their audiobooks from Audible and transcribe the bookmarks into text, which can be exported to Notion and Excel (.csv)
40 stars 8 forks source link

authenticate prompts for CVF Code: Not sure what that is #16

Closed agrohe21 closed 6 months ago

agrohe21 commented 8 months ago

then get error Traceback (most recent call last): File "/home/agrohe/projects/audible-bookmark-extractor/main_file.py", line 626, in loop.run_until_complete(audible_obj.main()) File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/home/agrohe/projects/audible-bookmark-extractor/main_file.py", line 123, in main await self.enter_command() File "/home/agrohe/projects/audible-bookmark-extractor/main_file.py", line 146, in entercommand await getattr(self, f"cmd{command}", self.invalid_command_callback)(**_kwargs) File "/home/agrohe/projects/audible-bookmark-extractor/main_file.py", line 85, in cmd_authenticate auth = audible.Authenticator.from_login( File "/home/agrohe/projects/audible-bookmark-extractor/env/lib/python3.10/site-packages/audible/auth.py", line 424, in

GGyll commented 6 months ago

Please provide a better description, when is this happening, what is your full error message?

agrohe21 commented 6 months ago

This error went away. Thx

On Mon, Feb 19, 2024, 6:08 PM Gustaf @.***> wrote:

Please provide a better description, when is this happening, what is your full error message?

— Reply to this email directly, view it on GitHub https://github.com/GGyll/audible-bookmark-extractor/issues/16#issuecomment-1953298185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGDBYJKNNIOEW4AYJWHHGTYUPSQ7AVCNFSM6AAAAABB5Z3S7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGI4TQMJYGU . You are receiving this because you authored the thread.Message ID: @.***>

stefan2904 commented 6 months ago

I also get this message when trying to authenticate (after entering email, password, locale).

python main_file.py                                 
Audible Bookmark Extractor v1.0
Enter CTRL + C to exit
To download your audiobooks, ensure you are authenticated, then enter download_books
Enter help for a list of commands

No Audible credentials found, please run 'authenticate' to generate them

Enter command: authenticate
Audible Email: <redacted>
Enter Password (will be hidden, press ENTER when done): 
us, ca, uk, au, fr, de, jp, it, in, es

Please enter your locale from the list above: de
CVF Code: 

According to the python audible lib: If 2FA is deactivated and Amazon detects some security risks (too many logins in short times, etc.) you will be asked for a verify code (CVF). In that case, amazon sends you an email or SMS with a code, which you enter here (source)

Unfortunately I haven't received any email from Amazon, so not sure how to proceed.

stefan2904 commented 6 months ago

It seems that the CVF page changes from time to time, see, e.g., mkb79/Audible#127

Your script is pinning audible==0.8.2. The latest release is 0.9.1 from September 2023. Maybe updating solves this issue?

stefan2904 commented 6 months ago

I quickly tried to manually upgrade to audible-0.9.1 and that appears to not solve the issue.