[Tutor] Windows err code 2
Colin Kimble
colinkimble82 at gmail.com
Tue Feb 4 16:07:08 EST 2020
Afternoon, my name is Colin Kimble. I have been having trouble with regards
to running code. I have run it from the command prompt. I had received two
error messages.
C:\Users\pc\Desktop\Programming\autologinbot-master\autologinbot-master>python
l
ogin.py
Traceback (most recent call last):
File
"C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File
"C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py"
, line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File
"C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py"
, line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "login.py", line 9, in <module>
browser = webdriver.Chrome()
File
"C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File
"C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\
selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver'
executabl
e needs to be in PATH. Please see
https://sites.google.com/a/chromium.org/chrome
driver/home
It cannot find my .py file and it says that Chromedriver needs to be in the
path, but I am not to sure how this is to be done. I hope you are able to
assist me. I wish you well, and I hope to hear from you soon.
Sincerley
Colin Kimble
More information about the Tutor
mailing list