aapatre / Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE

Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of web-scraping and automation, this script will find the necessary Udemy coupons & enroll you for PAID UDEMY COURSES, ABSOLUTELY FREE!
GNU General Public License v3.0
3.17k stars 553 forks source link

ModuleNotFoundError: No module named 'selenium' #151

Closed Simkav closed 3 years ago

Simkav commented 3 years ago

simkav@Simkav-PC:~/Sandbox/Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE$ python udemy_enroller.py

Traceback (most recent call last): File "udemy_enroller.py", line 8, in from selenium.webdriver.remote.webdriver import WebDriver ModuleNotFoundError: No module named 'selenium'

screenshot_2

python verison 3.8 screenshot_3

pip3 list shows that i have selenium

screenshot_1

i'm new to phyton, what should i do?

supersri811 commented 3 years ago

You have 2 versions of python. Uninstall one of them.

fakeid30 commented 3 years ago

@Simkav you are not supposed to run the script like that , to run the generic script follow this syntax :

python udemy_enroller.py --browser=firefox --max-pages=10 --cache-hits=12

But then you should see this :

◆ Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE git:(develop) ❯❯❯ python udemy_enroller.py
usage: udemy_enroller.py [-h] [--browser {google-chrome,chromium,opera,ff,internet_explorer,ie,chrome,edge,firefox}] [--max-pages MAX_PAGES] [--cache-hits CACHE_HITS]

Udemy Enroller

optional arguments:
  -h, --help            show this help message and exit
  --browser {google-chrome,chromium,opera,ff,internet_explorer,ie,chrome,edge,firefox}
                        Browser to use for Udemy Enroller
  --max-pages MAX_PAGES
                        Max pages to scrape from tutorialbar.com
  --cache-hits CACHE_HITS
                        If we hit the cache this number of times in a row we will exit the script
◆ Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE git:(develop) ❯❯❯ 

Since you are on ubuntu try python3 instead of python.

Simkav commented 3 years ago

Thanks phyton3 and arguments help.