warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported
martin666-alt opened this issue · 0 comments
Traceback (most recent call last):
File "/home/martin/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/usr/lib/python3.9/subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/martin/youtube-views/bot.py", line 104, in
sys.exit(_main())
File "/home/martin/youtube-views/bot.py", line 98, in _main
bot.run()
File "/home/martin/youtube-views/bot.py", line 46, in run
youtube = YouTube(
File "/home/martin/youtube-views/modules/youtube.py", line 54, in init
self.browser = webdriver.Chrome(options=self.options)
File "/home/martin/.local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init
self.service.start()
File "/home/martin/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home