Skip to content

'chromedriver' executable needs to be in PATH. #6

@MarwanShehata

Description

@MarwanShehata

image

When I try to download a course, I get this error. It's something that has to do with PATH and environment variables I think but I don't know what it is.

Course home URL: https://learning.edx.org/course/course-v1:PennX+SD4x+3T2020/home
C:\Users\MarwanShehata\Downloads\edx-dl-main\edx-dl-main\edx-dl.py:25: DeprecationWarning: use options instead of chrome_options
self.driver = webdriver.Chrome(
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Python39\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python39\lib\subprocess.py", line 1420, 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 "C:\Users\MarwanShehata\Downloads\edx-dl-main\edx-dl-main\edx-dl.py", line 199, in
run()
File "C:\Python39\lib\site-packages\click\core.py", line 1137, in call
return self.main(*args, **kwargs)
File "C:\Python39\lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
File "C:\Python39\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Python39\lib\site-packages\click\core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "C:\Users\MarwanShehata\Downloads\edx-dl-main\edx-dl-main\edx-dl.py", line 195, in run
course = EdxCourse(user, pwd, url)
File "C:\Users\MarwanShehata\Downloads\edx-dl-main\edx-dl-main\edx-dl.py", line 25, in init
self.driver = webdriver.Chrome(
File "C:\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Python39\lib\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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions