View Single Post
Old 02-24-2025, 07:39 AM   #4
Keybounce
Enthusiast
Keybounce began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Aug 2019
Device: kindle (various)
I am not able to get this to work for me. The chrome window shows up, but it just has a url of "data:,". Attempting to go to the amazon site anyways, and logging in, works, but nothing happens, and then the script dies with an error.

Once I log in, and go to https://www.amazon.com/hz/mycd/digit...ksAll/dateDsc/, and wait ...

Code:
Press Enter to continue...
Starting from page 1
Traceback (most recent call last):
  File "/home/user/Documents/dev/defragg/defragg-kindle-downloader.py", line 275, in <module>
    driver = webdriver.Chrome(service=service, options=options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
    super().__init__(
  File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in __init__
    super().__init__(command_executor=executor, options=options)
  File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 250, in __init__
    self.start_session(capabilities)
  File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 342, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
    self.error_handler.check_response(response)
  File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
Stacktrace:
#0 0x55e8f052b4e3 <unknown>
#1 0x55e8f025ac76 <unknown>
#2 0x55e8f0287019 <unknown>
#3 0x55e8f02832fa <unknown>
#4 0x55e8f0280029 <unknown>
#5 0x55e8f02beccc <unknown>
#6 0x55e8f02be47f <unknown>
#7 0x55e8f02b5de3 <unknown>
#8 0x55e8f028b2dd <unknown>
#9 0x55e8f028c34e <unknown>
#10 0x55e8f04eb3e4 <unknown>
#11 0x55e8f04ef3d7 <unknown>
#12 0x55e8f04f9b20 <unknown>
#13 0x55e8f04f0023 <unknown>
#14 0x55e8f04be1aa <unknown>
#15 0x55e8f05146b8 <unknown>
#16 0x55e8f0514847 <unknown>
#17 0x55e8f0524243 <unknown>
#18 0x758bfee9caa4 <unknown>
#19 0x758bfef29c3c <unknown>

(Python) user@NS70PU:~/Documents/dev/defragg$
Keybounce is offline   Reply With Quote