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

Failure : Searching get_chrome_version (windows) #52

Open
ShivdasBachewar opened this issue Jul 24, 2023 · 1 comment
Open

Failure : Searching get_chrome_version (windows) #52

ShivdasBachewar opened this issue Jul 24, 2023 · 1 comment

Comments

@ShivdasBachewar
Copy link

ShivdasBachewar commented Jul 24, 2023

  1. For me Chrome is installed in Program Files (x86)
  2. I recently upgraded package and getting following error
  3. 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}")

@yeongbin-jo
Copy link
Owner

I apologize for the inconvenience. I am aware of this issue and will fix it as soon as possible. Until then, I recommend using version 0.4.0

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