blogs icon indicating copy to clipboard operation
blogs copied to clipboard

Error while running "wd = uc.Chrome(options=options)"

Open tzoghi opened this issue 2 years ago • 0 comments

hi, when I run the following code:


import undetected_chromedriver.v2 as uc from pyvirtualdisplay import Display

display = Display(visible=0, size=(800, 600)) display.start()

options = uc.ChromeOptions() options.add_argument("--no-sandbox") wd = uc.Chrome(options=options)


I enconter this error :

WebDriverException Traceback (most recent call last) in <cell line: 9>() 7 options = uc.ChromeOptions() 8 options.add_argument("--no-sandbox") ----> 9 wd = uc.Chrome(options=options)

4 frames /usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self) 117 return_code = self.process.poll() 118 if return_code: --> 119 raise WebDriverException(f"Service {self.path} unexpectedly exited. Status code was: {return_code}") 120 121 def is_connectable(self) -> bool:

WebDriverException: Message: Service /root/.local/share/undetected_chromedriver/1b2da929686a5f20_chromedriver unexpectedly exited. Status code was: 1


I would be thankful if anyone could help me.

tzoghi avatar Aug 25 '23 17:08 tzoghi