Skip to content

uc have not auto download driver #1459

@henzycuong1

Description

@henzycuong1

Code:

options = ChromeOptions()
options.add_argument("--disable-gpu")
options.add_argument("--no-first-run")
options.add_argument(f"--user-data-dir={user_dir}")
driver = uc(options=options,browser_executable_path=user_dir.replace('Data\profile','GoogleChromePortable.exe'), suppress_welcome=False, user_multi_procs=True, version_main=102)

Error:

max() arg is an empty sequence
Traceback (most recent call last):
File "d:\ToolAirDropPython\task_etc\nansen\nansen_register.py", line 274, in executing
driver = uc(options=options,browser_executable_path=user_dir.replace('Data\profile','GoogleChromePortable.exe'), suppress_welcome=False, user_multi_procs=True, version_main=BROWSER_VERSION)
File "C:\Users\Four\AppData\Local\Programs\Python\Python39\lib\site-packages\undetected_chromedriver_init_.py", line 258, in init
self.patcher.auto()
File "C:\Users\Four\AppData\Local\Programs\Python\Python39\lib\site-packages\undetected_chromedriver\patcher.py", line 118, in auto
most_recent = max(files, key=lambda f: f.stat().st_mtime)
ValueError: max() arg is an empty sequence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions