Quoorex / minecraft-server-eu-bot

A voting bot for Minecraft-Server.eu. Supports proxies and multiple servers and usernames to vote for.
GNU General Public License v3.0
11 stars 6 forks source link

Getting error related to GeckoDriver #2

Closed emmyghast closed 4 years ago

emmyghast commented 4 years ago

selenium.common.exceptions.WebDriverException: Message: Expected absolute path: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://marionette/content/addon.js :: install :: line 70" data: no]

Quoorex commented 4 years ago

Could be fixed with the new commits. You should try updating your repository and running the program again. But please note that the installation process has slightly changed and you must now use Poetry instead of Pipenv. Just take a look at the README for the updated installation guide.

emmyghast commented 4 years ago

Still getting the same error :/ Its something to do with PATH 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)

Dibsymodzz commented 4 years ago

It seems like I have the same Problem and i am really lost in this kind of topic. Ive tryed to fix it but it didnt work. I have replaced the Geckodriver with an older one because it said that it dosnt have enough permission. I would appreciate help! https://prnt.sc/s2jnx9

emmyghast commented 4 years ago

I’ve tried to create my own version, it works slightly but it can’t find the element name

Dibsymodzz commented 4 years ago

and how can I fix that now?

Quoorex commented 4 years ago

I will try to look into this again later on. I have only tested the software on Linux so far and I will try running this on Windows. There are many things about this project that I have to rework anyway. @emmyghast Could you tell me what kind of things you've changed?

emmyghast commented 4 years ago

I meant I have attempted to make my own but it’s very simple and just goes to the site, finds the element id or name and clicks enter, no captcha or proxy as I can just get on a vpn

Quoorex commented 4 years ago

With the newest commit the program should now also function on Windows.

Dibsymodzz commented 4 years ago

https://prnt.sc/s40yer HELP :D

emmyghast commented 4 years ago

So the error you are getting basically means that it cant find the captcha, since each different website calls the id something different, im still looking for the right id, the way to look for it is by going to the voting page and pressing f12 or ctrl + shift i or right click and click inspect element. Once you open the inspect element tab, click on inspector and find the captcha part, in main.py the captcha locater is line 129, you can change the type of part it looks for with, driver.find_element_by_class_name or driver.find_element_by_name, im still looking for the right one

Quoorex commented 4 years ago

I know that this error also sometimes appears and I will try to fix it. To briefly explain this: The program installs the Firefox Extension Buster which is used the solve the captchas. Buster listens to the audio version of the Recaptcha and uses a public Text-to-Speech API to translate that audio into text. That text is then entered and the captcha thereby solved. The problem is that this API has a limit as to how often it can be used per minute. All Buster Users together count towards that limit because they all use the same API key provided by the developer of Buster. That means if too many users use Buster at the same time, it fails to solve the captcha. The bot currently does not handle this correctly and produces said error (or so I think). What can be done is to either let the bot retry solving the captcha with Buster until it works, or to implement a captcha solving service into the program, which would make it run way faster (that has been on the TODO list for too long now).

Quoorex commented 4 years ago

I've opened a new issue for that error (#3) and will be closing this one.