Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Getting error related to GeckoDriver #2

Closed
olhartley opened this issue Apr 15, 2020 · 12 comments
Closed

Getting error related to GeckoDriver #2

olhartley opened this issue Apr 15, 2020 · 12 comments

Comments

@olhartley
Copy link

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

Quoorex commented Apr 16, 2020

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.

@olhartley
Copy link
Author

olhartley commented Apr 16, 2020

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

@Dibsymodzz
Copy link

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

@olhartley
Copy link
Author

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

@Dibsymodzz
Copy link

and how can I fix that now?

@Quoorex
Copy link
Owner

Quoorex commented Apr 21, 2020

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?

@olhartley
Copy link
Author

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

Quoorex commented Apr 22, 2020

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

@Dibsymodzz
Copy link

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

@olhartley
Copy link
Author

olhartley commented Apr 22, 2020

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

Quoorex commented Apr 22, 2020

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

Quoorex commented Apr 23, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants