coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 639 forks source link

edx-dl: command not found #578

Open mickolegend opened 4 years ago

mickolegend commented 4 years ago

🚨Please review the Troubleshooting section before reporting any issue. Don't forget also to check the current issues to avoid duplicates.

Subject of the issue

I have completed all the steps for installation. After I have tried to use edx-dl by typing "edx-dl -u user@user.com --list-courses" I got error message saying "edx-dl: command not found"

Your environment

Steps to reproduce

Tell us how to reproduce this issue. Please provide us the course URL, and the specific subsection or unit if possible.

Expected behaviour

Terminal should have listed available courses I guess

Actual behaviour

I got error message sayin "edx-dl: command not found"

fliker09 commented 4 years ago

Confirming. For time being switched to Docker version which I've built locally.

anustark commented 4 years ago

I am facing the same issue. Any suggestion what might i am doing wrong?

floviolleau commented 4 years ago

Hi,

Maybe you missed, python ./edx-dl.py -u user@user.com --list-courses Note the python in front of it and the ./

Else are you using python virtualenv?

If yes, before running the script, move to the virtual env and next run the command line by doing source virtualenv_folder_chosed_at_env_creation/bin/activate. You will see in parenthesis something at the beginning of the command line. Next, run the edx command line.

To leave the virtualenv, simply type deactivate

Kind regards

fliker09 commented 4 years ago

I actually expected it to be in the global PATH

ollyimanishimwe commented 4 years ago

got the same error too

even after specifying that "python ./" PATH, no such file or directory found.

any help please

floviolleau commented 4 years ago

First check that you have python installed: which python should returns /usr/bin/python.

Go the directory where you cloned the repository (where edx-dl.py is located). If you installed it using python virtualenv, do source virtualenv_folder_chosed_at_env_creation/bin/activate. Else run python ./edx-dl.py -u user@user.com --list-courses