r0oth3x49 / udemy-dl

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

ImportError Thrown When trying to download #91

Closed IsraelGboluwaga closed 6 years ago

IsraelGboluwaga commented 6 years ago
Traceback (most recent call last):
  File "udemy-dl.py", line 7, in <module>
    import udemy
  File "/Users/israel.arunah/Documents/udemy-dl/udemy-dl/udemy/__init__.py", line 6, in <module>
    from    ._downloader    import Downloader
  File "/Users/israel.arunah/Documents/udemy-dl/udemy-dl/udemy/_downloader.py", line 8, in <module>
    from .colorized import *
  File "/Users/israel.arunah/Documents/udemy-dl/udemy-dl/udemy/colorized/__init__.py", line 1, in <module>
    from .Output import *
  File "/Users/israel.arunah/Documents/udemy-dl/udemy-dl/udemy/colorized/Output.py", line 1, in <module>
    from colorama import init,Fore,Back,Style
ImportError: No module named colorama
IsraelGboluwaga commented 6 years ago

The command was python udemy-dl.py -u myemail@email.com -p myPassword2 https://naspers.udemy.com/learn-how-to-code/learn/v4/overview

r0oth3x49 commented 6 years ago

@IsraelGboluwaga you should install the requirements first.

IsraelGboluwaga commented 6 years ago

It's worked. Thanks.

If I may ask, what caused the sudden loss of requirements because I used to download stuff without issues before?

r0oth3x49 commented 6 years ago

@IsraelGboluwaga what can i say about python installation in your PC.

IsraelGboluwaga commented 6 years ago

I've been using it before. And I use a mac, which means python is pre-installed on my system. I was wondering why it stopped all of a sudden.

r0oth3x49 commented 6 years ago

@IsraelGboluwaga the above error simply shows that you don't have colorama installed so that can be the reason.