jagalile / ivoox-scraping

Scrapes ivoox to download podcasts
GNU General Public License v3.0
3 stars 2 forks source link

Chromedirver file permission error #4

Closed jagalile closed 1 year ago

jagalile commented 2 years ago

`Traceback (most recent call last): File "/home/javier/scripts/ivoox-scraping/src/web_scraper.py", line 37, in _chromedriver_driver return webdriver.Chrome(self._driver_path(), chrome_options=self.options) File "/home/javier/scripts/ivoox-scraping/src/web_scraper.py", line 48, in _driver_path raise Exception('Chromedriver missing!') Exception: Chromedriver missing!

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/javier/.local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 71, in start self.process = subprocess.Popen(cmd, env=self.env, File "/usr/lib/python3.10/subprocess.py", line 966, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: '/home/javier/scripts/ivoox-scraping/chromedriver/chromedriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/javier/scripts/ivoox-scraping/main.py", line 32, in main(args['podcast_name'][0], args['chapter_name'][0]) File "/home/javier/scripts/ivoox-scraping/main.py", line 28, in main dp = DownloadPodcast(podcast_name, chapter_search_name=chapter) File "/home/javier/scripts/ivoox-scraping/src/download_podcast.py", line 16, in init self.web_scraping = WebScraper() File "/home/javier/scripts/ivoox-scraping/src/web_scraper.py", line 21, in init self.driver = self._chromedriver_driver File "/home/javier/scripts/ivoox-scraping/src/web_scraper.py", line 40, in _chromedriver_driver return webdriver.Chrome(self._driver_path(), chrome_options=self.options) File "/home/javier/.local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in init super().init(DesiredCapabilities.CHROME['browserName'], "goog", File "/home/javier/.local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in init self.service.start() File "/home/javier/.local/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 86, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://chromedriver.chromium.org/home`

jagalile commented 1 year ago

Fixed in this release #6