google-books-downloader icon indicating copy to clipboard operation
google-books-downloader copied to clipboard

Do not work in Linux

Open lobaluna opened this issue 2 years ago • 2 comments

I'm not on Windows. I believe this is the reason why I get this error:

~/bin $ python gbd.py 

Google Books Downloader by @aprikyan, 2020.
 .   .   .   .   .   .   .   .   .   .   .

Traceback (most recent call last):
  File "/mnt/Data/bin/gbd.py", line 244, in <module>
    driver = webdriver.Chrome("chromedriver.exe", options=chrome_options)
  File "/home/simonapetra/.local/lib/python3.10/site-packages/seleniumwire/webdriver.py", line 206, in __init__
    super().__init__(*args, **kwargs)
  File "/home/simonapetra/.local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/home/simonapetra/.local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: 'chromedriver.exe'

Can you confirm or advice how to solve this error, please?

lobaluna avatar Feb 05 '22 20:02 lobaluna

You can just replace chromedriver.exe with chromedriver on line 244 in gbd.py. You might need to install chromedriver if you don't have, yet.

marieell avatar Feb 12 '22 18:02 marieell