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

Error #15

Open
dsakura opened this issue Apr 28, 2022 · 1 comment
Open

Error #15

dsakura opened this issue Apr 28, 2022 · 1 comment

Comments

@dsakura
Copy link

dsakura commented Apr 28, 2022

Traceback (most recent call last):
File "C:\google-books-downloader\gbd.py", line 244, in
driver = webdriver.Chrome("chromedriver.exe", options=chrome_options)
File "C:\Python39\lib\site-packages\seleniumwire\webdriver.py", line 211, in init
super().init(*args, **kwargs)
File "C:\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init
RemoteWebDriver.init(
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

@dsakura
Copy link
Author

dsakura commented Apr 28, 2022

Fixed with the right chromedriver, but with new error:

Traceback (most recent call last):
  File "C:\google-books-downloader\gbd.py", line 248, in <module>
    step2()
  File "C:\google-books-downloader\gbd.py", line 216, in step2
    cookie = get_cookie(list(all_pages.items())[0][1])
  File "C:\google-books-downloader\gbd.py", line 140, in get_cookie
    return cookies[0]
IndexError: list index out of range

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant