GHunt icon indicating copy to clipboard operation
GHunt copied to clipboard

check_and_gen.py unable to install chromedriver

Open KB-Q opened this issue 4 years ago • 5 comments

When I run: python3 check_and_gen.py, I get this error:

    `Traceback (most recent call last):I'm downloading and installing it for you...  
    File "check_and_gen.py", line 102, in <module>
    driverpath        = get_driverpath() 
    File "/home/karthik_balaji/GHunt/lib/utils.py", line 101, in get_driverpath
    path = chromedriver_autoinstaller.install(cwd=True)
    File "/home/karthik_balaji/.local/lib/python3.8/site-packages/chromedriver_autoinstaller/__init__.py", line 15, in install
    chromedriver_filepath = utils.download_chromedriver(cwd)
    File "/home/karthik_balaji/.local/lib/python3.8/site-packages/chromedriver_autoinstaller/utils.py", line 166, in download_chromedriver
    chrome_version = get_chrome_version()
    File "/home/karthik_balaji/.local/lib/python3.8/site-packages/chromedriver_autoinstaller/utils.py", line 107, in get_chrome_version
    with subprocess.Popen([executable_name, '--version'], stdout=subprocess.PIPE) as proc:
    File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'google-chrome'`

The check_and_gen.py script doesn't install the chromedriver automatically, as described in the README. If it's a bug, kindly fix it, if not, let me know a workaround. Thank you.

KB-Q avatar Jan 10 '21 08:01 KB-Q

same pls help me, i'm using firefox

ibnudev7 avatar Feb 05 '21 09:02 ibnudev7

You'd need to install chrome or chromium.

This should do the trick for chromium:

 sudo apt install chromium-browser

Easier would be to install chrome though.

aditya-wate avatar Mar 06 '21 20:03 aditya-wate

You'd need to install chrome or chromium.

This should do the trick for chromium:

 sudo apt install chromium-browser

Easier would be to install chrome though.

installed Chrome, still the same problem

KOBAJIT avatar Jul 10 '21 11:07 KOBAJIT

Same issue here! Already have google chrome installed...

a-vizuet avatar Jul 18 '21 19:07 a-vizuet

  1. Chromedriver & Google Chrome This project uses Selenium, so you'll need to download the chromedriver here : https://chromedriver.chromium.org/downloads And put it in the GHunt folder. Be sure it's called "chromedriver.exe" or "chromedriver". Also, be sure to have Google Chrome installed.

  2. In the GHunt folder, do this:

python3 -m pip install -r requirements.txt

  1. Usage python3 check_and_gen.py

It worked for me

05x90fm avatar Jul 26 '21 22:07 05x90fm