r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

error No module named 'm3u8' #592

Closed mdashif43 closed 3 years ago

mdashif43 commented 3 years ago

File "C:..,\Desktop\ud\udemy-dl-1.0\udemy\compat.py", line 33, in import m3u8 ModuleNotFoundError: No module named 'm3u8'

eliassoares commented 3 years ago

Did you run pip install -r requirements.txt?

mdashif43 commented 3 years ago

Yes. Requirement already satisfied

r0oth3x49 commented 3 years ago

@mdashif43 you should install the requirements for exact same version of python you are using to run udemy-dl if you have multiple python installation. pip install will use the default python configured instead of what you use to run udemy-dl.

This issue was discussed earlier as well so do take a look at older issues before creating new one this way i can keep the things more organized and only work on actual issues instead.

Again you should install dependencies for the same version of python you use to run udemy-dl

johnnybaloney commented 3 years ago

Is this package a dependency of some other package listed in requirements.txt? Because what's listed in 1.0 doesn't seem to be pulling it. I had to manually add m3u8 and cloudscraper.

Right, I've just noticed that master has been updated.

gayansanjeewa commented 2 years ago
python3.9 -m pip install -r requirements.txt --upgrade

worked for me as mentioned in https://github.com/r0oth3x49/udemy-dl/issues/575#issuecomment-706756081