Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'selenium' #26

Closed
reeswar21 opened this issue May 11, 2021 · 32 comments
Closed

ModuleNotFoundError: No module named 'selenium' #26

reeswar21 opened this issue May 11, 2021 · 32 comments
Labels
invalid This doesn't seem right

Comments

@reeswar21
Copy link

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
Copy link
Owner

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
Copy link
Author

i have actually done that but its still not working

@reeswar21
Copy link
Author

Screenshot 2021-05-11 at 9 25 01 PM

@SHUR1K-N
Copy link
Owner

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

@reeswar21
Copy link
Author

yes

@SHUR1K-N
Copy link
Owner

SHUR1K-N commented May 11, 2021

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

@reeswar21 reeswar21 reopened this May 11, 2021
Repository owner deleted a comment from reeswar21 May 11, 2021
Repository owner deleted a comment from reeswar21 May 11, 2021
@reeswar21
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

still shows the same thing

@SHUR1K-N
Copy link
Owner

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
Copy link
Author

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

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

it still shows this

@SHUR1K-N
Copy link
Owner

SHUR1K-N commented May 11, 2021

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

and also can explain which part to edit?

@SHUR1K-N
Copy link
Owner

SHUR1K-N commented May 12, 2021

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
Copy link
Author

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
Copy link
Author

The chromedriver is up to date

@SHUR1K-N
Copy link
Owner

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
Copy link
Author

Yes it says no directory or such file

@SHUR1K-N
Copy link
Owner

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
Copy link
Author

Where exactly do I open a terminal window?
Screenshot 2021-05-12 at 3 40 01 PM

@SHUR1K-N
Copy link
Owner

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
Copy link
Author

still the same problem bro
Screenshot 2021-05-12 at 3 58 52 PM

@SHUR1K-N
Copy link
Owner

Hmm, try chmod 777 ./ -R.

@reeswar21
Copy link
Author

not working

@SHUR1K-N
Copy link
Owner

Could you share the output as before?

@reeswar21
Copy link
Author

Screenshot 2021-05-12 at 4 06 53 PM

@SHUR1K-N
Copy link
Owner

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
Copy link
Author

Screenshot 2021-05-12 at 4 13 32 PM

@SHUR1K-N
Copy link
Owner

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.

@SHUR1K-N SHUR1K-N added the invalid This doesn't seem right label May 12, 2021
@SHUR1K-N SHUR1K-N changed the title problem! Have this issue when i run the program ModuleNotFoundError: No module named 'selenium' Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants