Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98787

Chromedriver RuntimeError (This package supports only Linux, MacOSX or Windows platforms)

$
0
0

I am trying web scraping with the bs4 and chromedriver modules. Using Visual Studio Code and Python 3.7.4. on Windows 10.

from selenium import webdriver
from bs4 import BeautifulSoup
import chromedriver

driver = webdriver.Chrome('path')
driver.get('https://webscraper.io/test-sites/e-commerce/allinone') ### (or any other website)

soup = bs.BeautifulSoup(driver.page_source, 'html.parser')

It throws me a RuntimeError "This package supports only Linux, MacOSX or Windows platforms":

 File "c:/..../scraper.py", line 17, in <module>
   import chromedriver
 File "C:\......\Python\Python37\lib\site-packages\chromedriver\__init__.py", line 16, in <module>
   raise RuntimeError('This package supports only Linux, MacOSX or Windows platforms')
RuntimeError: This package supports only Linux, MacOSX or Windows platforms

What could be the source of this error? I have seen similar reports here (https://replit.canny.io/bug-reports/p/python-3-selenium) plus some answers about the development of the chromedriver module being in progress.


Viewing all articles
Browse latest Browse all 98787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>