pyronlaboratory / heroku-integrated-firefox-geckodriver

Buildpack enables your client code to access Firefox along with Geckodriver in a Heroku slug.
https://pyronlaboratory.github.io/heroku-integrated-firefox-geckodriver/
MIT License
41 stars 80 forks source link

'geckodriver' executable may have wrong permissions. #9

Closed Yoshi1203 closed 3 years ago

Yoshi1203 commented 4 years ago

As you can likely tell, I'm attempting to use https://github.com/St3veR0nin/cleverbot_aio_free with this, and I have run into several issues (of which my extreme lack of knowledge prevents me from knowing the origin).

I was consistently encountering Unable to find a matching set of capabilities, though after adding (and later removing) some code, I now only encounter this issue.


2020-05-06T11:40:28.897936+00:00 app[worker.1]:     cb = cleverbotfree.cbfree.Cleverbot()
2020-05-06T11:40:28.897948+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/cleverbotfree/cbfree.py", line 42, in __init__
2020-05-06T11:40:28.898084+00:00 app[worker.1]:     self.browser = webdriver.Firefox(options=self.opts)
2020-05-06T11:40:28.898088+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
2020-05-06T11:40:28.898306+00:00 app[worker.1]:     self.service.start()
2020-05-06T11:40:28.898311+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 88, in start
2020-05-06T11:40:28.898451+00:00 app[worker.1]:     os.path.basename(self.path), self.start_error_message)
2020-05-06T11:40:28.898490+00:00 app[worker.1]: selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable may have wrong permissions. 
2020-05-06T11:40:28.898493+00:00 app[worker.1]: ```

What do I do?
github-actions[bot] commented 4 years ago

Thank you for using heroku-integrated-firefox-geckodriver. Preliminary examination of your issue is underway' first issue

reybej commented 4 years ago

Hey, Yoshi, I am trying to the same thing trying to add this API to my discord bot getting the same error did you find any fix yet?

stmiller14 commented 4 years ago

Experiencing the same issue following the setup with this link https://elements.heroku.com/buildpacks/gordiansoftware/heroku-integrated-firefox-geckodriver

reybej commented 4 years ago

Experiencing the same issue following the setup with this link https://elements.heroku.com/buildpacks/gordiansoftware/heroku-integrated-firefox-geckodriver

Man, I just give up on that. If you find any solution please do tell me thanks 😃

RaviFefar commented 4 years ago

Simple changed the path:

#old path
driver = webdriver.Firefox(executable_path='/usr/local/opt/geckodriver')

#new path
driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver')
pyronlaboratory commented 3 years ago

@Yoshi1203, if you're still struggling to get the buildpack to work, please reopen the issue.

Jimmy-le-Breton commented 2 years ago

I had the problem under windows. fixed it by giving the full path including the exe file name. to make it clear :

executable_path=r'C:\Users\jeanm\Desktop\DVLPT\geckodriver-v0.31.0-win64' produced the error when calling the driver executable_path=r'C:\Users\jeanm\Desktop\DVLPT\geckodriver-v0.31.0-win64\geckodriver.exe' Was fine and firefox was opened. I had the same problem with Chrome and Firefox Hoping this help somebody