ChromeDriver Broken in Scraper

Hi, I am using the below in my scraper and in last couple of days scraper has been failing with " Message: ‘chromedriver’ executable may have wrong permissions" exception. Has something changed?

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import TimeoutException, WebDriverException 

 File "scraper.py", line 30, in <module>
     driver = webdriver.Chrome(chrome_options=chrome_options,executable_path='/usr/local/bin/chromedriver')
   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 68, in __init__
     self.service.start()
   File "/app/.heroku/python/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 88, in start
     os.path.basename(self.path), self.start_error_message)
 selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

Hi Kooben, welcome!

I don’t think anything has changed in the last few weeks, so I’m not sure what’s happening here.

Is this still happening for you? If so, can you point me at the scraper on Morph or Github so I can have a look in more detail?

Thanks for the reply. I had to add a Platform file then it started working again.

However, I have another issue now. The API atom feed is no longer generating correctly, the feed appears empty.

1 Like