Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:Can not find chromedriver for currently installed chrome version. #175

Open
dhruv-bansal opened this issue Nov 17, 2023 · 1 comment
Open

Comments

@dhruv-bansal
Copy link

WARNING:root:Can not find chromedriver for currently installed chrome version.
Traceback (most recent call last):
File "/Users/fracon/Documents/code/POC/Scweet/Example.py", line 7, in
data = scrape(words=['bitcoin', 'ethereum'], since="2021-10-01", until="2021-10-05", from_account=None, interval=1,
File "/Users/fracon/Documents/code/POC/Scweet/Scweet/scweet.py", line 71, in scrape
driver = init_driver(headless, proxy, show_images)
File "/Users/fracon/Documents/code/POC/Scweet/Scweet/utils.py", line 153, in init_driver
driver = webdriver.Chrome(options=options, executable_path=driver_path)
File "/Users/fracon/Documents/code/POC/Scweet/venv/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init
super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog",
File "/Users/fracon/Documents/code/POC/Scweet/venv/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in init
self.service.start()
File "/Users/fracon/Documents/code/POC/Scweet/venv/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 71, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1696, in _execute_child
and os.path.dirname(executable)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes, or os.PathLike object, not NoneType

As per this link after selenium 4.12 this explicit dependency should go away any plans to upgrade selenium library - see there is explicit dependency on 4.2.0 or any work around for this issue? I am using Version 119.0.6045.159 (Official Build) (arm64) version of chrome

@uvlover
Copy link

uvlover commented Nov 30, 2023

The Google version is too new, just download an older version.

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

No branches or pull requests

2 participants