GHunt
GHunt copied to clipboard
check_and_gen.py unable to install chromedriver
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.
same pls help me, i'm using firefox
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.
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
Same issue here! Already have google chrome installed...
-
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.
-
In the GHunt folder, do this:
python3 -m pip install -r requirements.txt
- Usage
python3 check_and_gen.py
It worked for me