offish / twitchtube

Twitch YouTube bot. Automatically make video compilations of the most viewed Twitch clips and upload them to YouTube using Python 3.
MIT License
538 stars 77 forks source link

FileNotFoundError: [WinError 2] The specified file is not found #49

Closed jeanchok closed 3 years ago

jeanchok commented 3 years ago

Hello, Just after the video is done recording ("twitchtube | 11:26:13 - info: Video is done rendering!") I have this error poping in my command prompt: `Traceback (most recent call last): File "C:\Users\Narvalo V2\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "C:\Users\Narvalo V2\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\Narvalo V2\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The specified file is not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\BOT Twitch\V2\twitchtube-master\main.py", line 76, in make_video(**parameters) File "D:\BOT Twitch\V2\twitchtube-master\twitchtube\video.py", line 173, in make_video upload = Upload(profile_path, sleep, headless, debug) File "C:\Users\Narvalo V2\AppData\Local\Programs\Python\Python39\lib\site-packages\opplast\upload.py", line 24, in init self.driver = webdriver.Firefox(firefox_profile=profile, options=options) File "C:\Users\Narvalo V2\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 164, in init self.service.start() File "C:\Users\Narvalo V2\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.`

It stops the program before uploading on Youtube and I can't find the solution. Do you have any idea?

offish commented 3 years ago

You need to add geckodriver to PATH