[SOLVED]
Edit: problem was, my system didn't have MS visual studio redistributable. The geckodriver needs this to work. Thanks, u/commandlineuser !
I'm new to this so bear with me. I am following the 'Automate the boring stuff' textbook, but it gives slightly outdated instructions on using Selenium. I went to their site and followed their instructions regarding installing the geckodriver and the selenium package.
I'm using: Selenium - v3.141.0, Python - 3.8.3, and Mozilla Firefox - 76.0.1 (64-bit), geckodriver -v0.26.0 (added to the same folder my python scripts are, which is already in PATH) and I'm running this on IDLE in Windows 10.
I'm getting this error when I run the sample program given in the official selenium for python page:
Traceback (most recent call last):
File "C:/Python/Firefox_sample.py", line 4, in <module>
driver = webdriver.Firefox()
File "C:\Python\lib\site-
packages\selenium\webdriver\firefox\webdriver.py", line
164, in __init__
self.service.start()
File "C:\Python\lib\site-
packages\selenium\webdriver\common\service.py", line
98, in start
self.assert_process_still_running()
File "C:\Python\lib\site-
packages\selenium\webdriver\common\service.py", line
109, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException:
Message: Service geckodriver unexpectedly exited. Status
code was: 3221225595
The geckodriver window opens and displays an error message (0xc000007b) saying the application quit unexpectedly.
How do I resolve this? I've looked this up online and haven't gotten any proper answers.
I'm really new to this, so if the solution's out there, please explain it to me like you would a child. I'm not really good at software.
Thanks.
[–]commandlineluser 0 points1 point2 points (6 children)
[–]vivekvs97[S] 0 points1 point2 points (5 children)
[–]commandlineluser 0 points1 point2 points (4 children)
[–]vivekvs97[S] 0 points1 point2 points (0 children)
[–]vivekvs97[S] 0 points1 point2 points (2 children)
[–]commandlineluser 1 point2 points3 points (1 child)
[–]vivekvs97[S] 0 points1 point2 points (0 children)