-
Notifications
You must be signed in to change notification settings - Fork 11
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
"TypeError: __init__() got an unexpected keyword argument 'service'" [SOLVED] #18
Comments
Hey! This has an existing closed Issue; you may follow its thread to check if the instructions fix it for you. Edit: You already mentioned you read previous Issue. Apologies, have you read the specific linked Issue as well? |
Hello Dev! Yes, the previous person had a different scenario. He was using a ESR browser and failed to install another one, which is knowledge shortage on his side. But I already updated my browser to be the latest version 85.0 Firefox. I would like to think that this might be something you can fix on the code basis. |
Correct. Also, you are fine with the Firefox version you have (that's what my test machines have as well). The issue is, MeetNinja is running just fine with every Linux machine I have tested it on; had another round of testing just as I saw this Issue! I will leave this Issue open for now and do some research as to what the culprit could be and then revert back. |
The firefox I used is normal for everything. I think it might be the Arch Linux OS that you didn't account for? Googling this python error seems to pop up many results, sadly though I don't know how to code, so it will be a lot slower for me to work on that aspect, but I will try. If you do need more error logs/ report, let me know how and I will try to get it to you! |
Arch Linux should not be an issue as far as I can think, because the previous user's issue was similar; even though they had a problem installing the non-ESR Firefox, the error should not be displayed in the first place whatsoever. Correct, Google shows the same traceback, but for different elements which do not make much sense to this problem as every individual element has its own culprit. I do not think there are any more logs/reports you can help with, this is sufficient enough, thank you! |
Yup! I did try both browsers but it did not work, but forgot to post the traceback for Chrome, just in case:
And you won't have to respond every time, just a friendly reminder now and then. |
This is helpful information! I was under the impression this issue would be localized to Firefox, but this makes it a more generalized error, possibly independent of the browser. I could not help but notice you have run MeetNinja.py using |
So My python version output of This is what happens if I do it with
|
Alright, I have a theory, and it comes from experiencing this before, but... Could you downgrade your Python version to 3.8.6 if possible and see if that helps? Many Python packages have yet to catch up and be 100% compatible with Python 3.9.0, and this might be the culprit. All of my Linux machines are on Python 3.8.6, and an update would break quite a lot of things on my end... |
Also, could you check if a "geckodriver.log" file has generated in the directory? If so, could you share its content here? |
Okay, so I added the 3.8.7 python, and am reinstalling the whole thing from a git clone again. So sadly that file was removed, let me try to pip install it again, and then see what it can do. Which version of selenium would you want me to install? That works best? |
Any idea as to why this happened?
|
That's fine, the "geckodriver.log" file can be considered as secondary for the time being . I have never updated Selenium, just checked the version and it is 4.0.0a1. My Linux machines are running 64-bit Kali distributions; some physical, some virtual. Your "urllib3" traceback is quite strange, this should not be happening. Anyway, try manually installing "urllib3" using |
It is going to take some time for me to get the ubuntu up and running with python 3, I will let you know when I have it. |
Alright, awesome work, comrade! I'll be researching and testing different versions at my end as well and update here if I find something juicy. |
Update! So I was able to run the program with The drive log had absolutely nothing in it though. Included is my changes to the code:
|
Same problem in ubuntu with 3.8.6 python
|
What a pain in the posterior! Alright, well, you may use MeetNinja in the meantime with the following workaround:- In MeetNinja.py, from line #137:
You may reduce this entire section down to just: Making this change, MeetNinja will show you a deprecation warning and encourage you to use "service" (I know, right?!), but will operate just fine after that; so you may ignore that warning. |
Damn, for me it popped up one more error now:
|
Hey, no worries! This should be an easy one, you just have not given the correct permissions (or any permissions, in fact) to the files that came with MeetNinja. Just open a terminal window inside the MeetNinja directory and execute the following:
This will give read, write, and execute permissions for all subdirectories under MeetNinja's main directory recursively. |
Okay, I just changed the permissions of the gecko driver and the Browser finally launched! |
Awesome! This is how MeetNinja operated before, but I did not like the deprecation warning spoiling the beautiful (subjective) colorful verbose messages, so used "Service" as suggested by that very deprecation warning. Sadly, that very change seems to cause inconsistency and mystery. I think I will just change it back to the version which displays the deprecation warning. At least MeetNinja would work for people who need it immediately! |
Okay, I think we can close the issue. I did not get the warning by the way. So I suppose it is not there on Arch? |
Would you mind to send me your discord somehow? I would want to discuss somethings with you in private. |
Yup, no errors:
|
Strange! I will test some stuff and push out an update within 1-2 hours that fixes this whole thing, hopefully. Glad it works for you! |
If you let people know, to give the files in the directory this permission:
It would work fine! |
Hey kind dev!
I use 64bit Arch linux and latest firefox 85.0. And this error popped up. Any idea how to fix it?
Know naught about why the error
service
popped up. Read previous issues, could not fix it myself sorry.The text was updated successfully, but these errors were encountered: