You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded package and getting following error
chromedriver_autoinstaller\utils.py", line 170, in get_chrome_version dirs = [f.name for f in os.scandir("C:\\Program Files\\Google\\Chrome\\Application") if f.is_dir() and re.match("^[0-9.]+$", f.name)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\Google\\Chrome\\Application'
we can try following
for scan_path in ["C:\\Program Files\\Google\\Chrome\\Application", "C:\\Program Files (x86)\\Google\\Chrome\\Application"]:
try:
dirs = [f.name for f in os.scandir(scan_path) if f.is_dir() and re.match("^[0-9.]+$", f.name)]
version = max(dirs)
return version
except Exception as e:
logging.info(f"FileNotFound at {scan_url}")
The text was updated successfully, but these errors were encountered:
chromedriver_autoinstaller\utils.py", line 170, in get_chrome_version dirs = [f.name for f in os.scandir("C:\\Program Files\\Google\\Chrome\\Application") if f.is_dir() and re.match("^[0-9.]+$", f.name)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\Google\\Chrome\\Application'
we can try following
The text was updated successfully, but these errors were encountered: