SHUR1K-N / MeetNinja-Google-Meet-Bot

A super dope tool that attends your Google Meet(s) for you. Flawlessly handles scheduled multiple (subsequent) Meet sessions. Also disables the camera & microphone, and shows timestamps of joining & ending times for each Meet. Supported: Google Chrome / Mozilla Firefox running on Linux / Mac / Windows
https://TheComputerNoob.com
71 stars 11 forks source link

ModuleNotFoundError: No module named 'selenium' #26

Closed reeswar21 closed 3 years ago

reeswar21 commented 3 years ago

Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 3, in from selenium import webdriver; import requests ModuleNotFoundError: No module named 'selenium'

SHUR1K-N commented 3 years ago

It seems you have not installed the required packages to be running MeetNinja. Kindly, refer to step #2 under the "Usage" subheading within the MeetNinja page:

PIP-install all the packages mentioned under the last subheading on this page, either automatically via running the pip install -r requirments.txt command, or manually via separate pip install commands for each package

reeswar21 commented 3 years ago

i have actually done that but its still not working

reeswar21 commented 3 years ago
Screenshot 2021-05-11 at 9 25 01 PM
SHUR1K-N commented 3 years ago

Do you still see the same message saying ModuleNotFoundError: No module named 'selenium' ?

reeswar21 commented 3 years ago

yes

SHUR1K-N commented 3 years ago

Strange. I found some sensible solutions here that you could try. Please do, and let me know!

reeswar21 commented 3 years ago

thanks for the solution and now its stuck on this:

Checking for MeetNinja updates...�[32m You are using the latest version! �[0m

Initializing browser...�[31m Failed!�[0m

SHUR1K-N commented 3 years ago

Uncomment line #280 from MeetNinja.py:

# print(e)

Now, the failure will show itself in the form of a traceback (error message) in the MeetNinja console window. You may then share this traceback here.

reeswar21 commented 3 years ago

still shows the same thing

SHUR1K-N commented 3 years ago

What thing? If you correctly follow my previous comment, it should give you a traceback (error message) instead of the "Failed!" text. It should show you a more descriptive message.

reeswar21 commented 3 years ago

Checking for MeetNinja updates... You are using the latest version! 

Initializing browser... Failed!

it still shows this

SHUR1K-N commented 3 years ago

Then you have not followed the previous instruction correctly. Please uncomment line line #280 from MeetNinja.py:

# print(e)

Here, remove the #, so it becomes:

print(e)

Now, when you save the file and run MeetNinja again, the failure will show itself in a more specific and detailed (a traceback). You may then share this traceback here.

reeswar21 commented 3 years ago

hi, bro sorry for the late reply..This is the error!

Initializing browser...Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 246, in driver = initBrowser() File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 125, in initBrowser driver = webdriver.Chrome(service=servicePath, options=chromeOptions) TypeError: init() got an unexpected keyword argument 'service'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 278, in print(e) NameError: name 'e' is not defined

SHUR1K-N commented 3 years ago

This problem has already been solved in this Issue. Check the thread out and let me know if the suggested fix solves your problem.

reeswar21 commented 3 years ago

still the same problem

Initializing browser...Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 234, in driver = initBrowser() File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 113, in initBrowser driver = webdriver.Chrome(service=servicePath, options=chromeOptions) TypeError: init() got an unexpected keyword argument 'service'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 266, in print(e) NameError: name 'e' is not defined

reeswar21 commented 3 years ago

and also can explain which part to edit?

SHUR1K-N commented 3 years ago

All solutions to the problems you are facing are already given within the "Possible fixes" section of when MeetNinja shows "Failed!". Your problem here may be that you are either not providing permissions correctly (as mentioned within the hyperlinked thread in the previous comment) or your Google Chrome and chromedriver versions are a mismatch. Try updating Google Chrome and then download the appropriate chromedriver according to your Google Chrome version

and also can explain which part to edit?

Could you please be more specific so I could help better?

reeswar21 commented 3 years ago

Help pls I have no idea where to start now

Initializing browser...Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 234, in driver = initBrowser() File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 113, in initBrowser driver = webdriver.Chrome(service=servicePath, options=chromeOptions) TypeError: init() got an unexpected keyword argument 'service'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/reeswar/MeetNinja-Google-Meet-Bot-master/MeetNinja.py", line 266, in print(e) NameError: name 'e' is not defined

reeswar21 commented 3 years ago

The chromedriver is up to date

SHUR1K-N commented 3 years ago

Again, you are not providing the correct permissions to MeetNinja. Have you tried executing the chmod 777 -R ./ command in your terminal from within the MeetNinja directory?

reeswar21 commented 3 years ago

Yes it says no directory or such file

SHUR1K-N commented 3 years ago

Then you are doing it incorrectly. Enter MeetNinja's root directory (where you see MeetNinja.py and other files), and open a terminal window there. Execute the command pwd to confirm you are currently in the MeetNinja directory. Once confirmed, executing chmod 777 -R ./ will most definitely work.

reeswar21 commented 3 years ago

Where exactly do I open a terminal window?

Screenshot 2021-05-12 at 3 40 01 PM
SHUR1K-N commented 3 years ago

Within this very folder itself.

If this is a Mac system, you may have to follow this guide to be able to just right-click in any empty space within a folder to open a terminal window there.

Alternatively, you could just open a terminal window anywhere and just navigate to this folder using the cd <folder path> command.

reeswar21 commented 3 years ago

still the same problem bro

Screenshot 2021-05-12 at 3 58 52 PM
SHUR1K-N commented 3 years ago

Hmm, try chmod 777 ./ -R.

reeswar21 commented 3 years ago

not working

SHUR1K-N commented 3 years ago

Could you share the output as before?

reeswar21 commented 3 years ago
Screenshot 2021-05-12 at 4 06 53 PM
SHUR1K-N commented 3 years ago

Strange. Could you try passing the absolute path of the MeetNinja directory into the chmod command?

chmod 777 /Users/reeswar/MeetNinja-Google-Meet-Bot-master -R

reeswar21 commented 3 years ago
Screenshot 2021-05-12 at 4 13 32 PM
SHUR1K-N commented 3 years ago

Super strange, I have tried the same with my test machines and it seems to be working 100% fine. This is the correct command to be executed, and it seems to be an issue at your end, for your particular machine. I am afraid I would not be able to help with the chmod bit. However, once you have researched the issue and fixed it, and then given the correct permissions to MeetNinja using chmod, you may comment here with a further query or create a new Issue.

For the time being, I am marking this Issue as closed since it is not technically an Issue with MeetNinja.