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
Code:
Error: